[Python-Dev] Proposed: drop unnecessary "context" pointer from PyGetSetDef

Mark Dickinson dickinsm at gmail.com
Mon May 4 22:18:20 CEST 2009


On Mon, May 4, 2009 at 9:15 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> Mark Dickinson <dickinsm <at> gmail.com> writes:
>>
>> I *think* that third party code that's recompiled for 3.1 and that
>> doesn't use the closure field will either just work, or will produce an
>> easily-fixed compile error.  Larry, does this sound right?
>
> This doesn't sound right. The functions in the third party code will get
> compiled with the wrong signature, so they can crash (or behave unexpectedly)
> when called by Python.

Yes, of course the signature of the getters and setters changes.  Please
ignore me. :-)

Mark


More information about the Python-Dev mailing list