Message222939
I now see that this issue is not so easy from C side.
And more, it is very uncommon for either Python or C implementations (especial C implementations) to introspect to figure out their "real" name. Existing cases are rather exceptions. And in many case this is only a side effect of sharing an implementation between several classes (set and frozenset, three buffered file classes in io, etc). In many cases repr's flexibility is limited: hardcoded or omitted module name, used class's __name__ instead of __qualname__, etc.
This should be discussed on Python-Dev maillist. |
|
Date |
User |
Action |
Args |
2014-07-13 15:24:09 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, pitrou, benjamin.peterson, stutzbach, Claudiu.Popa, hynek, josh.r |
2014-07-13 15:24:09 | serhiy.storchaka | set | messageid: <1405265049.54.0.251652301408.issue21861@psf.upfronthosting.co.za> |
2014-07-13 15:24:09 | serhiy.storchaka | link | issue21861 messages |
2014-07-13 15:24:09 | serhiy.storchaka | create | |
|