[Patches] [ python-Patches-478374 ] __class_init__ method for classes

noreply@sourceforge.net noreply@sourceforge.net
Mon, 05 Nov 2001 09:28:52 -0800


Patches item #478374, was opened at 2001-11-05 09:28
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=478374&group_id=5470

Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Heller (theller)
Assigned to: Nobody/Anonymous (nobody)
Summary: __class_init__ method for classes

Initial Comment:
ExtensionClass did include a __class_init__ class-
method,
which has been called at the end of class creation.

I've uploaded a (simple minded) patch to fileobject.c, 
which implements the same behaviour for new style 
classes.
It is simple minded because it only iterates over the
tp_base member and not over tp_bases.

Any chance this could be included in Python 2.2?


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=478374&group_id=5470