[issue5880] Remove unneeded "context" pointer from getters and setters
Mark Dickinson
report at bugs.python.org
Sat May 2 20:03:19 CEST 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
I've removed those gratuitous context uses in Objects/longobject.c
in r72202 (trunk) and r72203 (py3k).
I'm not sure it's a good idea to remove the context field completely.
Apart from the compatibility issues that Antoine pointed out, it
doesn't seem improbable that some getters and setters might need it.
A Google code search for PyGetSetDef turned up at least one non-null
use of the context field (in something called pyephem). I didn't
look at it closely, though.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5880>
_______________________________________
More information about the Python-bugs-list
mailing list