Skip to content

Update collections from v3.14.3#7135

Merged
youknowone merged 1 commit intoagent-wffrom
agent-wf-4b14ed6a938b1290
Feb 14, 2026
Merged

Update collections from v3.14.3#7135
youknowone merged 1 commit intoagent-wffrom
agent-wf-4b14ed6a938b1290

Conversation

@github-actions
Copy link
Contributor

Summary

Upgrade collections from CPython v3.14.3.

Part of #6839

Changes

  • Updated Lib/collections/__init__.py from CPython v3.14.3
  • Updated Lib/test/test_collections.py from CPython v3.14.3
  • Preserved RustPython's fallback implementation for defaultdict (imports from ._defaultdict when _collections.defaultdict is not available)
  • Added new test test_update_reentrant_add_clears_counter for Counter class
  • Minor formatting fixes to maintain consistency with RustPython test conventions

Notes

The main compatibility consideration is that CPython's collections module now expects defaultdict to be available from the _collections C module. Since RustPython doesn't have this implemented yet, we maintain the fallback to the pure Python implementation in Lib/collections/_defaultdict.py.

AI generated by Upgrade Python Library

  • expires on Feb 15, 2026, 5:21 PM UTC

- Updated Lib/collections from CPython v3.14.3
- Preserved RustPython's fallback implementation for defaultdict
- Added test for update_reentrant_add_clears_counter
- Minor formatting fixes in test file
@youknowone youknowone merged commit 16bb104 into agent-wf Feb 14, 2026
11 checks passed
@youknowone youknowone deleted the agent-wf-4b14ed6a938b1290 branch February 14, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant