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.

classification
Title: [3.5.0b3] stdlib on Windows mismatches compiled version
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: abarry, r.david.murray, zach.ware
Priority: normal Keywords:

Created on 2015-07-08 18:32 by abarry, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg246462 - (view) Author: Anilyka Barry (abarry) * (Python triager) Date: 2015-07-08 18:32
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 pre-compiled versions, but the file is misleading.

There could be more files like this, but I haven't checked much.
msg246463 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2015-07-08 18:37
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 forever for the benefit of other implementations of Python (so they don't have to reimplement OrderedDict unless they want to).
msg246464 - (view) Author: Anilyka Barry (abarry) * (Python triager) Date: 2015-07-08 18:42
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'.
msg246465 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-07-08 18:53
The import is not at the top of the file, it is after the definition.
History
Date User Action Args
2022-04-11 14:58:18adminsetgithub: 68781
2015-07-08 18:53:57r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg246465

resolution: not a bug
stage: resolved
2015-07-08 18:42:19abarrysetmessages: + msg246464
2015-07-08 18:37:22zach.waresetnosy: + zach.ware
messages: + msg246463
2015-07-08 18:32:05abarrycreate