Right now there are two minor problems with it:
- Here
CodeType is assumed to be missing for some reason:
|
t = getattr(types, "CodeType", None) |
But here, it is just used as it should be:
|
d[types.CodeType] = _deepcopy_atomic |
- We can also modernize
type(None) and etc to use existing types. aliases for clarity
Linked PRs
Right now there are two minor problems with it:
CodeTypeis assumed to be missing for some reason:cpython/Lib/copy.py
Line 109 in 26ff436
cpython/Lib/copy.py
Line 185 in 26ff436
type(None)and etc to use existingtypes.aliases for clarityLinked PRs
typesmodule usage incopymodule #100816