Use frozendict on Python 3.15#294
Conversation
On Python 3.15, use the new built-in type frozendict, instead of types.MappingProxyType, for BASIC_STR_ESCAPE_REPLACEMENTS constant.
|
Change extracted from the larger #292 change. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #294 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 535 534 -1
Branches 100 100
=========================================
- Hits 535 534 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
What's the benefit?
|
|
It avoids Accessing |
|
I don't think this does much anything currently because |
|
Ok, I close my PR. |
Since the |
|
I'd imagine that the attempt to avoid If CPython wants this change, however, I don't object to it. A |
|
Ok, I recreated my PR to use frozendict: #297. |
CPython doesn't import |
On Python 3.15, use the new built-in type frozendict, instead of types.MappingProxyType, for BASIC_STR_ESCAPE_REPLACEMENTS constant.