[ python-Bugs-1018315 ] __new__ not defined?
SourceForge.net
noreply at sourceforge.net
Fri Mar 31 17:01:28 CEST 2006
Bugs item #1018315, was opened at 2004-08-28 22:59
Message generated for change (Comment added) made by zseil
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1018315&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
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: iga Seilnacht (zseil)
Date: 2006-03-31 17:01
Message:
Logged In: YES
user_id=1326842
Some more details: __new__ is now documented in reference
manual, http://docs.python.org/dev/ref/customization.html.
----------------------------------------------------------------------
Comment By: iga Seilnacht (zseil)
Date: 2006-03-31 16:56
Message:
Logged In: YES
user_id=1326842
This is a duplicate of a bug 1156412, which was already
fixed.
This bug should be closed and resolution changed to closed.
----------------------------------------------------------------------
Comment By: Nick Coghlan (ncoghlan)
Date: 2004-09-22 04: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