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 madison.may
Recipients docs@python, madison.may
Date 2014-04-11.18:05:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397239551.94.0.578791540537.issue21202@psf.upfronthosting.co.za>
In-reply-to
Content
Naming a file `io.py` in the root directory of a project causes the following error on 2.7: 

    AttributeError: 'module' object has no attribute 'BufferedIOBase'

Similar issues arise on 3.x., although the error message is a bit more useful:

    Fatal Python error: Py_Initialize: can't initialize sys standard streams
    AttributeError: 'module' object has no attribute 'OpenWrapper'

At the very least we should ensure that the error message is a bit more straightforward and clear, as I imagine its not all that uncommon to cause this kind of conflict.
History
Date User Action Args
2014-04-11 18:05:52madison.maysetrecipients: + madison.may, docs@python
2014-04-11 18:05:51madison.maysetmessageid: <1397239551.94.0.578791540537.issue21202@psf.upfronthosting.co.za>
2014-04-11 18:05:51madison.maylinkissue21202 messages
2014-04-11 18:05:51madison.maycreate