# Documentation The ctypes docs say that the message of the `ArgumentError` for the presented example should be as follows: <img width="901" alt="image" src="https://user-images.githubusercontent.com/22010517/200696573-98e089c0-892a-41f8-a28c-9bd89fc99a65.png"> In fact, it looks like this: ``` >>> strchr = libc.strchr >>> strchr.restype = c_char_p >>> strchr.argtypes = [c_char_p, c_char] >>> >>> strchr(b"abcdef", b"def") Traceback (most recent call last): File "<stdin>", line 1, in <module> ctypes.ArgumentError: argument 2: TypeError: wrong type ``` I will prepare a PR. <!-- gh-pr-number: gh-99267 --> * PR: gh-99267 <!-- /gh-pr-number --> <!-- gh-pr-number: gh-99760 --> * PR: gh-99760 <!-- /gh-pr-number -->
Documentation
The ctypes docs say that the message of the

ArgumentErrorfor the presented example should be as follows:In fact, it looks like this:
I will prepare a PR.