| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:eafed271-e735-daad-9449-9cb2fa6c2f8b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AACA:2373EB:1F09D9D:2A7B99A:6A4F2FD6 |
| html-safe-nonce | 9bf840776aceb2eb061d131b0b2ed19ceae85373c81f10f0546db343cb551d9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUNBOjIzNzNFQjoxRjA5RDlEOjJBN0I5OUE6NkE0RjJGRDYiLCJ2aXNpdG9yX2lkIjoiMTE3NDE2MjYxMDc1MDE3MzE0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f8008f696b5c888afc7e25600d87f7266cf867db7baf885315bc2911f2b3a3ac |
| hovercard-subject-tag | pull_request:139969979 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/3454/files |
| twitter:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| og:image:alt | Current version passes tests but doesn't not support the _source attribute or the verbose option.
Obtains a 5x creation time speed-up and with small positive impacts on post creation performanc... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/3454/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F3454%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F3454%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/3454/files |
| Reload | https://github.com/python/cpython/pull/3454/files |
| Reload | https://github.com/python/cpython/pull/3454/files |
| Please reload this page | https://github.com/python/cpython/pull/3454/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/3454/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
34.8k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.6k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| rhettinger | https://github.com/rhettinger |
| python:master | https://github.com/python/cpython/tree/master |
| rhettinger:optimize-namedtuple | https://github.com/rhettinger/cpython/tree/optimize-namedtuple |
|
Conversation
31
| https://github.com/python/cpython/pull/3454 |
|
Commits
23
| https://github.com/python/cpython/pull/3454/commits |
|
Checks
0
| https://github.com/python/cpython/pull/3454/checks |
|
Files changed
| https://github.com/python/cpython/pull/3454/files |
| Please reload this page | https://github.com/python/cpython/pull/3454/files |
|
bpo-28638: Optimize namedtuple() creation time by minimizing use of exec()
| https://github.com/python/cpython/pull/3454/files#top |
|
Show all changes
23 commits
| https://github.com/python/cpython/pull/3454/files |
|
baca675
Working draft without _source
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/baca675956bab1c58c393a223d55c31ffc56e310 |
|
3a2aa41
Re-use itemgetter() instances
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/3a2aa415618ef45af68f21afbd1ce56f95693c9c |
|
e24ef4b
Speed-up calls to __new__() with a pre-bound tuple.__new__()
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/e24ef4beb1cbb90639af13bc09a367bf54c7a48c |
|
49aa967
Add note regarding string interning
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/49aa967264c56110863bf87acb5c2303c4c61c01 |
|
c34b444
Remove unnecessary create function wrappers
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/c34b44488feb94901b5c224989d72bbddb1d9786 |
|
0c7f163
Minor sync-ups with PR-2736. Mostly formatting and f-strings
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/0c7f16393c33350809396cc6c3491c1e767f0805 |
|
5de0b7f
Bring-in qualname/__module fix-ups from PR-2736
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/5de0b7fd80bf9db74ea136b4d16d1cfb5a2aff28 |
|
ca643f4
Formally remove the verbose flag and _source attribute
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/ca643f4acb542c64cb6aae58ce06b5d4e11f6e7c |
|
e18b92e
Restore a test of potentially problematic field names
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/e18b92ed04e43b914ddc0f3acf69e5dbef848ef8 |
|
0851fc7
Restore kwonly_args test but without the verbose option
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/0851fc76dbdeef765ca070208f505e29b7b8d1e8 |
|
3ac1151
Adopt Inada's idea to reuse the docstrings for the itemgetters
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/3ac1151fda5bbfb8da18c7c44b56477fbe71293a |
|
b31f063
Neaten-up a bit
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/b31f0639f3f83ca4a7a98715a2693742a97bf8f6 |
|
deb30a2
Add news blurb
rhettinger Sep 8, 2017
| https://github.com/python/cpython/pull/3454/commits/deb30a2fe688832de98c2ebfd962d060d54d5ef6 |
|
f402cb3
Merge branch 'master' of github.com:python/cpython into optimize-name…
rhettinger Sep 9, 2017
| https://github.com/python/cpython/pull/3454/commits/f402cb3a1a890e0bd5451680a3c78ebff868f448 |
|
86cef9e
Serhiy pointed-out the need for interning
rhettinger Sep 9, 2017
| https://github.com/python/cpython/pull/3454/commits/86cef9e8ef80217dcb93e2f11821683a91930faa |
|
83b5e93
Jelle noticed as missing f on an f-string
rhettinger Sep 9, 2017
| https://github.com/python/cpython/pull/3454/commits/83b5e93876ea47b81a476c79767306cb474b9152 |
|
0168317
Add whatsnew entry for feature removal
rhettinger Sep 9, 2017
| https://github.com/python/cpython/pull/3454/commits/0168317c6ebf19be74990479003eb8d81faf7694 |
|
dadafc0
Accede to request for dict literals instead keyword arguments
rhettinger Sep 9, 2017
| https://github.com/python/cpython/pull/3454/commits/dadafc06fd0ff8fc9f78511d73ca6b1485b17791 |
|
483d08c
Leave the method.__module__ attribute pointing the actual location of…
rhettinger Sep 9, 2017
| https://github.com/python/cpython/pull/3454/commits/483d08c4e9b949703a3bc2eae73095b4cdc739b1 |
|
bc6852c
Improve variable names and add a micro-optimization for an non-public…
rhettinger Sep 10, 2017
| https://github.com/python/cpython/pull/3454/commits/bc6852c014cda6be19d8f39daca1966a9b9d5536 |
|
c897674
Simplify by in-lining reuse_itemgetter()
rhettinger Sep 10, 2017
| https://github.com/python/cpython/pull/3454/commits/c8976744fc3ac2f03c25d942c02271b29cb6352c |
|
bd4ea4e
Arrange steps in more logical order
rhettinger Sep 10, 2017
| https://github.com/python/cpython/pull/3454/commits/bd4ea4ece39fd46a953e7c284e4ee6cc4bfc72dd |
|
ffb78c9
Save docstring in local cache instead of interning
rhettinger Sep 10, 2017
| https://github.com/python/cpython/pull/3454/commits/ffb78c991e6c2d1719e73ae6b9900fe143f97467 |
|
Clear filters
| https://github.com/python/cpython/pull/3454/files |
| Please reload this page | https://github.com/python/cpython/pull/3454/files |
| Please reload this page | https://github.com/python/cpython/pull/3454/files |
|
collections.rst
| https://github.com/python/cpython/pull/3454/files#diff-5251b40283a63a061147a0ae32017c629d88a95d1c363d4e47f37b7969a4b0e3 |
|
3.7.rst
| https://github.com/python/cpython/pull/3454/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52 |
|
__init__.py
| https://github.com/python/cpython/pull/3454/files#diff-c92f871cb9b4aa1583c89f82cd416d58a5d70fff41faf41e45dedf775dbe7713 |
|
test_collections.py
| https://github.com/python/cpython/pull/3454/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
|
2017-09-08-14-31-15.bpo-28638.lfbVyH.rst
| https://github.com/python/cpython/pull/3454/files#diff-92c26e6a7507d9b816ef262340ad326ca3d0ea9e531eeecf69108a9d41e7e231 |
| Doc/library/collections.rst | https://github.com/python/cpython/pull/3454/files#diff-5251b40283a63a061147a0ae32017c629d88a95d1c363d4e47f37b7969a4b0e3 |
|
View file
| https://github.com/rhettinger/cpython/blob/ffb78c991e6c2d1719e73ae6b9900fe143f97467/Doc/library/collections.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/3454/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/3454/files#diff-5251b40283a63a061147a0ae32017c629d88a95d1c363d4e47f37b7969a4b0e3 |
|
| https://github.com/python/cpython/pull/3454/files#diff-5251b40283a63a061147a0ae32017c629d88a95d1c363d4e47f37b7969a4b0e3 |
|
| https://github.com/python/cpython/pull/3454/files#diff-5251b40283a63a061147a0ae32017c629d88a95d1c363d4e47f37b7969a4b0e3 |
|
| https://github.com/python/cpython/pull/3454/files#diff-5251b40283a63a061147a0ae32017c629d88a95d1c363d4e47f37b7969a4b0e3 |
|
| https://github.com/python/cpython/pull/3454/files#diff-5251b40283a63a061147a0ae32017c629d88a95d1c363d4e47f37b7969a4b0e3 |
|
| https://github.com/python/cpython/pull/3454/files#diff-5251b40283a63a061147a0ae32017c629d88a95d1c363d4e47f37b7969a4b0e3 |
| Doc/whatsnew/3.7.rst | https://github.com/python/cpython/pull/3454/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52 |
|
View file
| https://github.com/rhettinger/cpython/blob/ffb78c991e6c2d1719e73ae6b9900fe143f97467/Doc/whatsnew/3.7.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/3454/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/3454/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52 |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Sep 9, 2017 | https://github.com/python/cpython/pull/3454/files#r137932939 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3454/files |
| rhettinger | https://github.com/rhettinger |
| Sep 9, 2017 | https://github.com/python/cpython/pull/3454/files#r137933306 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3454/files |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Sep 9, 2017 | https://github.com/python/cpython/pull/3454/files#r137932902 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3454/files |
| rhettinger | https://github.com/rhettinger |
| Sep 9, 2017 | https://github.com/python/cpython/pull/3454/files#r137933344 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3454/files |
| methane | https://github.com/methane |
| Sep 10, 2017 | https://github.com/python/cpython/pull/3454/files#r137939162 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3454/files |
|
| https://github.com/python/cpython/pull/3454/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52 |
| Lib/collections/__init__.py | https://github.com/python/cpython/pull/3454/files#diff-c92f871cb9b4aa1583c89f82cd416d58a5d70fff41faf41e45dedf775dbe7713 |
|
View file
| https://github.com/rhettinger/cpython/blob/ffb78c991e6c2d1719e73ae6b9900fe143f97467/Lib/collections/__init__.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/3454/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/3454/files#diff-c92f871cb9b4aa1583c89f82cd416d58a5d70fff41faf41e45dedf775dbe7713 |
|
| https://github.com/python/cpython/pull/3454/files#diff-c92f871cb9b4aa1583c89f82cd416d58a5d70fff41faf41e45dedf775dbe7713 |
|
| https://github.com/python/cpython/pull/3454/files#diff-c92f871cb9b4aa1583c89f82cd416d58a5d70fff41faf41e45dedf775dbe7713 |
| Please reload this page | https://github.com/python/cpython/pull/3454/files |
|
| https://github.com/python/cpython/pull/3454/files#diff-c92f871cb9b4aa1583c89f82cd416d58a5d70fff41faf41e45dedf775dbe7713 |
| Lib/test/test_collections.py | https://github.com/python/cpython/pull/3454/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
|
View file
| https://github.com/rhettinger/cpython/blob/ffb78c991e6c2d1719e73ae6b9900fe143f97467/Lib/test/test_collections.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/3454/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/3454/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
|
| https://github.com/python/cpython/pull/3454/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
|
| https://github.com/python/cpython/pull/3454/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
|
| https://github.com/python/cpython/pull/3454/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
|
| https://github.com/python/cpython/pull/3454/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
| Misc/NEWS.d/next/Library/2017-09-08-14-31-15.bpo-28638.lfbVyH.rst | https://github.com/python/cpython/pull/3454/files#diff-92c26e6a7507d9b816ef262340ad326ca3d0ea9e531eeecf69108a9d41e7e231 |
|
View file
| https://github.com/rhettinger/cpython/blob/ffb78c991e6c2d1719e73ae6b9900fe143f97467/Misc/NEWS.d/next/Library/2017-09-08-14-31-15.bpo-28638.lfbVyH.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/3454/{{ revealButtonHref }} |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |