This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: __new__ not defined?
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, ncoghlan, skip.montanaro, zseil
Priority: normal Keywords:

Created on 2004-08-28 20:59 by skip.montanaro, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg22257 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2004-08-28 20:59
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.
msg22258 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2004-09-22 02:49
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.
msg22259 - (view) Author: Ziga Seilnacht (zseil) * (Python committer) Date: 2006-03-31 14:56
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.
msg22260 - (view) Author: Ziga Seilnacht (zseil) * (Python committer) Date: 2006-03-31 15:01
Logged In: YES 
user_id=1326842

Some more details: __new__ is now documented in reference
manual, http://docs.python.org/dev/ref/customization.html.
msg22261 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-03-31 15:04
Logged In: YES 
user_id=849994

Closing as a Duplicate. Thanks, zseil!
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40839
2004-08-28 20:59:47skip.montanarocreate