homepage

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.

Author eltoder
Recipients Andrew.Lutomirski, belopolsky, eddygeek, eltoder, r.david.murray, serhiy.storchaka
Date 2016年05月15日.20:36:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463344620.06.0.763727534629.issue20371@psf.upfronthosting.co.za>
In-reply-to
Content
namedtuple._replace() actually doesn't call subclass' __new__. It calls tuple.__new__ directly, so it has the same problem as datetime classes.
Parameter and Signature are new in 3.3. I'm not sure if they're expected to be used as base classes.
@r.david.murray: is that contract specified anywhere? The doc says "Return a datetime with the same attributes, except for those attributes given new values by whichever keyword arguments are specified." This doesn't explicitly mention subclasses, but also doesn't mention the possibility of discarding any attribute values.
History
Date User Action Args
2016年05月15日 20:37:00eltodersetrecipients: + eltoder, belopolsky, r.david.murray, serhiy.storchaka, Andrew.Lutomirski, eddygeek
2016年05月15日 20:37:00eltodersetmessageid: <1463344620.06.0.763727534629.issue20371@psf.upfronthosting.co.za>
2016年05月15日 20:37:00eltoderlinkissue20371 messages
2016年05月15日 20:36:59eltodercreate

AltStyle によって変換されたページ (->オリジナル) /