Guido van Rossum added the comment: For modules, __name__ is the fully-qualified name, and that's fine.
But for classes and functions __name__ is just the "given name" from the syntax (whatever came after 'def' or 'class') and that's not fine -- for anything except builtins where we do this I would like the str() to produce the fully-qualified name. I presume by "functions" you mean only things defined with 'def' and excluding bound methods? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue13224> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com