[Python-bugs-list] [ python-Bugs-485602 ] new module broken with new classes
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 26 Nov 2001 06:01:19 -0800
Bugs item #485602, was opened at 2001-11-26 06:01
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=485602&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: David M. Beazley (beazley)
Assigned to: Nobody/Anonymous (nobody)
Summary: new module broken with new classes
Initial Comment:
The new module doesn't support the new-style classes.
Example:
import new
class foo(object):
pass
a = new.instance(foo,{})
I didn't really expect this to work, but I'm trying to
figure out how to emulate the behavior of this function
with new-style classes (i.e., how to bring a new-style
instance into being without calling __init__).
Does a call to PyType_GenericAlloc(PyTypeObject *type,
1) emulate this behavior? Please advise.
Cheers,
Dave
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=485602&group_id=5470