Amaury Forgeot d'Arc <amaur...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue6259> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com