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 ncoghlan
Recipients drt24, ncoghlan
Date 2014-08-08.11:48:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407498538.2.0.497921887546.issue22172@psf.upfronthosting.co.za>
In-reply-to
Content
This is not new behaviour. It's just normal system shadowing:

$ python test.py 
Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import collections
  File "/usr/lib64/python2.7/collections.py", line 9, in <module>
    from operator import itemgetter as _itemgetter, eq as _eq
ImportError: cannot import name itemgetter

Avoiding that behaviour is what the new isolated mode is for:

$ ~/devel/py34/python -I test.py 
$
History
Date User Action Args
2014-08-08 11:48:58ncoghlansetrecipients: + ncoghlan, drt24
2014-08-08 11:48:58ncoghlansetmessageid: <1407498538.2.0.497921887546.issue22172@psf.upfronthosting.co.za>
2014-08-08 11:48:58ncoghlanlinkissue22172 messages
2014-08-08 11:48:58ncoghlancreate