Message221993
Is it common for C implementations to introspect to figure out their "real" name? I do this manually for reprs of my user defined classes, but I haven't noticed many built-ins that consider extensibility for the repr. Maybe I'm just not using the classes that do it or I'm overriding the repr without checking?
I just tested, and it looks like frozenset has a subclass friendly repr, while bytearray does not as of 3.4.0. Seems like it might make sense to first determine if introspection should be the default; it would mean a little code bloat every time it's done. |
|
Date |
User |
Action |
Args |
2014-06-30 23:31:01 | josh.r | set | recipients:
+ josh.r, pitrou, benjamin.peterson, stutzbach, Claudiu.Popa, hynek, serhiy.storchaka |
2014-06-30 23:31:01 | josh.r | set | messageid: <1404171061.47.0.312057415339.issue21861@psf.upfronthosting.co.za> |
2014-06-30 23:31:01 | josh.r | link | issue21861 messages |
2014-06-30 23:31:01 | josh.r | create | |
|