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 serhiy.storchaka
Recipients Claudiu.Popa, benjamin.peterson, hynek, josh.r, pitrou, rhettinger, serhiy.storchaka, stutzbach
Date 2014-07-13.15:24:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405265049.54.0.251652301408.issue21861@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-07-13 15:24:09serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, pitrou, benjamin.peterson, stutzbach, Claudiu.Popa, hynek, josh.r
2014-07-13 15:24:09serhiy.storchakasetmessageid: <1405265049.54.0.251652301408.issue21861@psf.upfronthosting.co.za>
2014-07-13 15:24:09serhiy.storchakalinkissue21861 messages
2014-07-13 15:24:09serhiy.storchakacreate