Message89251
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. |
|
Date |
User |
Action |
Args |
2009-06-11 12:51:56 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, theller, mark.dickinson |
2009-06-11 12:51:55 | amaury.forgeotdarc | set | messageid: <1244724715.81.0.567198637593.issue6259@psf.upfronthosting.co.za> |
2009-06-11 12:51:54 | amaury.forgeotdarc | link | issue6259 messages |
2009-06-11 12:51:54 | amaury.forgeotdarc | create | |
|