Message267276
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. |
|
Date |
User |
Action |
Args |
2016-06-04 17:07:45 | abarry | set | recipients:
+ abarry, rhettinger |
2016-06-04 17:07:44 | abarry | set | messageid: <1465060064.38.0.412706275461.issue27220@psf.upfronthosting.co.za> |
2016-06-04 17:07:44 | abarry | link | issue27220 messages |
2016-06-04 17:07:44 | abarry | create | |
|