New submission from Emanuel Barry:
On Windows and with the pre-compiled stdlib, the 'collections/__init__.py' file
doesn't match the compiled one, as hinted by the presence of OrderedDict, even
though it is now part of _collections. The interpreter works just as intended
since it uses the
Zachary Ware added the comment:
I'm not sure I follow what you think is wrong. Are you expecting there to be no
OrderedDict in Lib/collections/__init__.py? That's an incorrect expectation;
even though there is now a C implementation of OrderedDict, the Python
implementation will be kept
Emanuel Barry added the comment:
I guess I misexplained myself; I meant that the file hints that there is no C
implementation of it (it doesn't import the name from _collections), even
though '_collections.OrderedDict is collections.OrderedDict'.
--
R. David Murray added the comment:
The import is not at the top of the file, it is after the definition.
--
nosy: +r.david.murray
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org