-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Typing of ctypes' pointer types is wrong #8351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hum, this was probably my mistake. I changed this in #8074 due to observing this behaviour in the interactive REPL: >>> from ctypes import pointer
>>> pointer()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: _ctypes.pointer() takes exactly one argument (0 given) |
The entire |
If there only was a way to judge the impact of a change. 🤔 But seriously, I would just try the changes and see whether primer explodes. |
I'll get on it. |
https://docs.python.org/3/library/ctypes.html#pointers explicitly says:
and even has a code example for this:
But the
pointer
constructortypeshed/stdlib/ctypes/__init__.pyi
Line 167 in 10bc4b0
The text was updated successfully, but these errors were encountered: