[ python-Bugs-1018315 ] __new__ not defined?
SourceForge.net
noreply at sourceforge.net
Wed Sep 22 04:49:08 CEST 2004
Bugs item #1018315, was opened at 2004-08-29 06:59
Message generated for change (Comment added) made by ncoghlan
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1018315&group_id=5470
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Nobody/Anonymous (nobody)
Summary: __new__ not defined?
Initial Comment:
I can't find __new__ in the index for either the Language
Reference Manual or Library Reference Manual. Poking
around I did find it mentioned in ext/newtypes.tex, but
without any details. I'd submit something, but I don't
know at this point how to use it.
----------------------------------------------------------------------
Comment By: Nick Coghlan (ncoghlan)
Date: 2004-09-22 12:49
Message:
Logged In: YES
user_id=1038590
I had the same problem when trying to convert Decimal to use
__new__ instead of __init__.
The only info I could find was
http://www.python.org/2.2.3/descrintro.html.
Which actually does a very good job of explaining how
new-style classes work. The only problem is that it is on
the website, but NOT referenced in the docs.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1018315&group_id=5470
More information about the Python-bugs-list
mailing list