Message287028
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:26 | terry.reedy | set | recipients:
+ terry.reedy, ethan.furman, serhiy.storchaka |
2017-02-05 01:14:25 | terry.reedy | set | messageid: <1486257265.9.0.125662561205.issue29446@psf.upfronthosting.co.za> |
2017-02-05 01:14:25 | terry.reedy | link | issue29446 messages |
2017-02-05 01:14:25 | terry.reedy | create | |
|