Message265650
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. |
|
Date |
User |
Action |
Args |
2016-05-15 20:37:00 | eltoder | set | recipients:
+ eltoder, belopolsky, r.david.murray, serhiy.storchaka, Andrew.Lutomirski, eddygeek |
2016-05-15 20:37:00 | eltoder | set | messageid: <1463344620.06.0.763727534629.issue20371@psf.upfronthosting.co.za> |
2016-05-15 20:37:00 | eltoder | link | issue20371 messages |
2016-05-15 20:36:59 | eltoder | create | |
|