[issue10386] token module should define __all__

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue10386] token module should define __all__

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed revision 86410. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue10386] token module should define __all__

2010-11-11 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Normally, I'd recommend leaving the "main" name alone, but in the case of modules that use it as an tool for module maintenance (symbol, token), I don't think it matters either way. Ok to commit. -- assignee: -> belopolsky nosy: +fdrake resoluti

[issue10386] token module should define __all__

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The token module appears to be designed to be used with import *. In fact it is used this way in the tokenize module. However it does not define __all__ and as a result, from token import * leaks symbol "main": >>> import tokenize >>> tokenize.main.