Eric Snow <ericsnowcurren...@gmail.com> added the comment:
Exactly. :) I'd expect PEP 499 to specify changing __module__ of classes and functions from __main__ to the module name (__spec__.name). This aligns closely with the whole point of the PEP. :) As a bonus, it will simplify things for pickling (which doesn't inherently deal well with __main__). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36375> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com