Bugs item #1018315, was opened at 2004-08-28 20:59 Message generated for change (Comment added) made by gbrandl 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: Closed >Resolution: Duplicate 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: Georg Brandl (gbrandl) Date: 2006-03-31 15:04 Message: Logged In: YES user_id=849994 Closing as a Duplicate. Thanks, zseil! ---------------------------------------------------------------------- Comment By: iga Seilnacht (zseil) Date: 2006-03-31 15: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 14: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 02: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 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com