Serhiy Storchaka added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21861> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com