Nick Coghlan added the comment:
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
import collections
File "/usr/lib64/python2.7/collections.py", line 9, in
from operator import itemgetter as
New submission from Daniel Thomas:
In Python 3.4 (but not 3.2 or 2.7) when a system module does an import then
files with the same name in the directory of the original python script which
match that name are used.
E.g.
With a directory containing:
test.py:
#!/usr/bin/env python3
from