diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-02-05 00:12:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-05 00:12:34 (GMT) |
commit | 29584aa6acbc70091dc23636db51ee1696e65072 (patch) | |
tree | 1be439e1079a89854ae692e4e137d2a909070f96 /Lib/collections | |
parent | 48d16b4b0fb0d0558bdbc1aee850650a671ecc77 (diff) | |
download | cpython-29584aa6acbc70091dc23636db51ee1696e65072.zip cpython-29584aa6acbc70091dc23636db51ee1696e65072.tar.gz cpython-29584aa6acbc70091dc23636db51ee1696e65072.tar.bz2 |
bpo-43102: Set namedtuple __new__'s internal builtins to a dict. (GH-24439) (GH-24452)
Diffstat (limited to 'Lib/collections')
-rw-r--r-- | Lib/collections/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index bc69a67..5bdd3b3 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -424,7 +424,7 @@ def namedtuple(typename, field_names, *, rename=False, defaults=None, module=Non namespace = { '_tuple_new': tuple_new, - '__builtins__': None, + '__builtins__': {}, '__name__': f'namedtuple_{typename}', } code = f'lambda _cls, {arg_list}: _tuple_new(_cls, ({arg_list}))' |