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, rhettinger
Date 2016-06-04.17:07:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465060064.38.0.412706275461.issue27220@psf.upfronthosting.co.za>
In-reply-to
Content
Attached patch adds a pure Python version of `collections.defaultdict`. This is yet another step in providing better support for alternate implementations, which may or may not have `_collections`.

I also went ahead and fixed __all__ so that `from collections import *` doesn't fail if 'deque' isn't present (which it may not be in alternate implementations).

Patch includes (small) doc and test changes. All tests pass successfully for both versions.
History
Date User Action Args
2016-06-04 17:07:45abarrysetrecipients: + abarry, rhettinger
2016-06-04 17:07:44abarrysetmessageid: <1465060064.38.0.412706275461.issue27220@psf.upfronthosting.co.za>
2016-06-04 17:07:44abarrylinkissue27220 messages
2016-06-04 17:07:44abarrycreate