[Python-bugs-list] [ python-Bugs-548651 ] Fix the METH_CLASS implementation
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 25 Apr 2002 08:15:03 -0700
Bugs item #548651, was opened at 2002-04-25 17:15
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=548651&group_id=5470
Category: Python Interpreter Core
Group: Python 2.3
Status: Open
Resolution: None
Priority: 6
Submitted By: Thomas Heller (theller)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Fix the METH_CLASS implementation
Initial Comment:
The devel-docs about METH_CLASS:
The method will be passed the type object as the first
parameter rather than an instance of the type. This is
used to create class methods, similar to what is
created when using the classmethod() built-in
function. New in version 2.3.
The code does not do it in this way. The first
parameter the function receives is NULL, the type
object goes together with the remaining arguments
in the second parameter (which is a tuple).
See the thread with subject 'METH_CLASS' on python-dev
at 2002-04-25, Guido agreed that this should be fixed.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=548651&group_id=5470