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 abarry
Recipients abarry, eric.snow, rhettinger, serhiy.storchaka
Date 2015-11-16.00:59:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447635541.39.0.207043592341.issue25623@psf.upfronthosting.co.za>
In-reply-to
Content
I would personally suggest a more permanent and accessible way, in the way the decimal module handles it. I'd add a '_pycollections' module holding the pure Python implementations of OrderedDict and _count_elements, then have the collections package import them if the C accelerators don't work.

While the '_pydecimal' module is not guaranteed to remain across versions, successfully importing it means that you are guaranteed to use the pure Python version of it. In the same direction, successfully importing OrderedDict from _pycollections would guarantee that you're using the pure Python version of it.

This would have the side-effect of allowing people relying on the pure Python implementation details to use them (see #25315).
History
Date User Action Args
2015-11-16 00:59:01abarrysetrecipients: + abarry, rhettinger, eric.snow, serhiy.storchaka
2015-11-16 00:59:01abarrysetmessageid: <1447635541.39.0.207043592341.issue25623@psf.upfronthosting.co.za>
2015-11-16 00:59:01abarrylinkissue25623 messages
2015-11-16 00:59:00abarrycreate