[Python-bugs-list] [ python-Bugs-470040 ] ParseTuple t# vs subclasses
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 11 Oct 2001 19:40:22 -0700
Bugs item #470040, was opened at 2001-10-10 15:51
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=470040&group_id=5470
Category: Type/class unification
Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Tim Peters (tim_one)
Assigned to: Tim Peters (tim_one)
Summary: ParseTuple t# vs subclasses
Initial Comment:
Part of the problem in bug 468061 is that
PyArg_ParseTuple's 't#' format rejects objects that
are of a str subclass. Apparently that in turn is
because the latter don't have
Py_TPFLAGS_HAVE_GETCHARBUFFER.
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2001-10-11 19:40
Message:
Logged In: YES
user_id=31435
Fixed. Inheritance of tp_as_buffer methods simply wasn't
being done.
Lib/test/test_descr.py; new revision: 1.88
Objects/typeobject.c; new revision: 2.100
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=470040&group_id=5470