]> granicus.if.org Git - python/commit
SF bug [#470040] ParseTuple t# vs subclasses.
authorTim Peters <tim.peters@gmail.com>
Fri, 12 Oct 2001 02:38:24 +0000 (02:38 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 12 Oct 2001 02:38:24 +0000 (02:38 +0000)
commitfc57ccb98248b4a8f4ba4debdf3791970b136c4d
treea0aba8c9a056e54a0faa26a619d653905d773540
parent401a76dcab6766d85bfcbb7e3705ee376e97bc06
SF bug [#470040] ParseTuple t# vs subclasses.
inherit_slots():  tp_as_buffer was getting inherited as if it were a
method pointer, rather than a pointer to a vector of method pointers.  As
a result, inheriting from a type that implemented buffer methods was
ineffective, leaving all the tp_as_buffer slots NULL in the subclass.
Lib/test/test_descr.py
Objects/typeobject.c