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 terry.reedy
Recipients ethan.furman, serhiy.storchaka, terry.reedy
Date 2017-02-05.01:14:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This issue is spun-off from #29162, which was about idlelib.pyshell depending on import * importing sys.

'wantobjects' does not have the same bug potential as stdlib imports.  But, Serhiy, if you care about it or otherwise prefer __all__,

__all__ = [name for name in globals() if not name.startswith('_') and name not in {'enum', 're', 'sys', 'wantobjects'}]

should work if placed near the end of the file, just before 'def _test'.  Except for the exclusion set, I presume that 'import *' does essentially the same iteration
Date User Action Args
2017-02-05 01:14:26terry.reedysetrecipients: + terry.reedy, ethan.furman, serhiy.storchaka
2017-02-05 01:14:25terry.reedysetmessageid: <>
2017-02-05 01:14:25terry.reedylinkissue29446 messages
2017-02-05 01:14:25terry.reedycreate