[docs] [issue17268] Context managers written as C types no longer work in Python 2.7

Marc-Andre Lemburg report at bugs.python.org
Thu Feb 21 18:49:04 CET 2013


Marc-Andre Lemburg added the comment:

On 21.02.2013 17:36, Marc-Andre Lemburg wrote:
> After some experiments, it turned out that by simply filling in the tp_methods slot, the problem went away.
> 
> Still, the change to use _PyObject_LookupSpecial() appears to have missed the (older) use case where you don't define tp_members, but instead implement method lookup as part of the tp_getattr slot.

Sorry: *tp_methods*, not tp_members.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17268>
_______________________________________


More information about the docs mailing list