Skip to content

Simplify creation of the __new__ method in namedtuple()#20361

Merged
rhettinger merged 1 commit intopython:masterfrom
rhettinger:simplify_namedtuple
May 26, 2020
Merged

Simplify creation of the __new__ method in namedtuple()#20361
rhettinger merged 1 commit intopython:masterfrom
rhettinger:simplify_namedtuple

Conversation

@rhettinger
Copy link
Contributor

Minor code simplification. Using exec() is slower and more awkward than eval() in this context.

@miss-islington
Copy link
Contributor

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 26, 2020
(cherry picked from commit 3cfe5b7)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
@bedevere-bot
Copy link

GH-20409 is a backport of this pull request to the 3.9 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants