Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
Closed
Description
Documentation
The ctypes docs say that the message of theArgumentError
for the presented example should be as follows:
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.