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 martin.panter
Recipients SilentGhost, georg.brandl, leewz, martin.panter
Date 2016-04-20.13:02:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461157354.85.0.901935526952.issue26809@psf.upfronthosting.co.za>
In-reply-to
Content
I agree that the namespace pollution is a valid bug. It affects “from string import *” and dir(string). Normally, modules either define __all__ listing their exported names, or they are really careful to define non-exported names beginning with underscores (_). Judging by the line “import re as _re”, somebody once tried to use the second technique for the “string” module.

Silent Ghost: perhaps you were thinking of Issue 23883 (adding to __all__ in various modules). This case is the opposite: we want to limit the exported names.
History
Date User Action Args
2016-04-20 13:02:34martin.pantersetrecipients: + martin.panter, georg.brandl, SilentGhost, leewz
2016-04-20 13:02:34martin.pantersetmessageid: <1461157354.85.0.901935526952.issue26809@psf.upfronthosting.co.za>
2016-04-20 13:02:34martin.panterlinkissue26809 messages
2016-04-20 13:02:34martin.pantercreate