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 ned.deily
Recipients docs@python, madison.may, ned.deily
Date 2014-04-11.18:58:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397242682.67.0.185637016322.issue21202@psf.upfronthosting.co.za>
In-reply-to
Content
Using a local module name that shadows one in the standard library is a very common "import trap".  See, for example, https://ncoghlan_devs-python-notes.readthedocs.org/en/latest/python_concepts/import_traps.html#the-name-shadowing-trap.  I did a quick search through the documentation and didn't find an explicit reference to the general topic.  If it isn't already, it probably should be mentioned in the tutorial and the FAQ.  I don't think that 'io' should be special-cased.
History
Date User Action Args
2014-04-11 18:58:02ned.deilysetrecipients: + ned.deily, docs@python, madison.may
2014-04-11 18:58:02ned.deilysetmessageid: <1397242682.67.0.185637016322.issue21202@psf.upfronthosting.co.za>
2014-04-11 18:58:02ned.deilylinkissue21202 messages
2014-04-11 18:58:02ned.deilycreate