Skip to content

Commit 6b61dbd

Browse files
committed
Do not intern default factory name
1 parent 9510879 commit 6b61dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def _field_init(f, frozen, globals, self_name, slots):
490490
# Return the text of the line in the body of __init__ that will
491491
# initialize this field.
492492

493-
default_name = sys.intern(f'__dataclass_dflt_{f.name}__')
493+
default_name = f'__dataclass_dflt_{f.name}__'
494494
if f.default_factory is not MISSING:
495495
if f.init:
496496
# This field has a default factory. If a parameter is

0 commit comments

Comments
 (0)