[Python-Dev] special method lookup: how much do we care?
Benjamin Peterson
benjamin at python.org
Sat May 9 17:52:11 CEST 2009
2009/5/9 Terry Reedy <tjreedy at udel.edu>:
> Benjamin Peterson wrote:
>
>>>>> __reduce__
>>>>> __setstate__
>>>>> __reversed__
>>>>> __length_hint__
>>>>> __sizeof__
>
>> No, it's easier to just use _PyObject_LookupSpecial there.
>
> Does that mean that the above 5 'work correctly' (or can easily be made to
> do so)? Leaving just __entry__ and __exit__ as problems?
Yes, __enter__ and __exit__ are the tricky ones.
--
Regards,
Benjamin
More information about the Python-Dev
mailing list