[issue6259] ctypes pointer arithmetic
Amaury Forgeot d'Arc
report at bugs.python.org
Thu Jun 11 14:51:55 CEST 2009
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
I like this feature. Some comments:
- tests...
- unsupported operand types should return Py_NotImplemented.
- gcc supports pointer arithmetic with void*:
http://gcc.gnu.org/onlinedocs/gcc/Pointer-Arith.html
Could ctypes do the same?
- Some operations are not allowed. If p1 and p2 are ctypes pointers,
"p1 -= p2" will not work - but it's not a common usage.
However, "p1 + 1" and "p1 - 1" seem very useful, and should be supported.
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6259>
_______________________________________
More information about the Python-bugs-list
mailing list