René's URL Explorer Experiment


Title: bpo-39320: Handle unpacking of **values in compiler by markshannon · Pull Request #18141 · python/cpython · GitHub

Open Graph Title: bpo-39320: Handle unpacking of **values in compiler by markshannon · Pull Request #18141 · python/cpython

X Title: bpo-39320: Handle unpacking of **values in compiler by markshannon · Pull Request #18141 · python/cpython

Description: This is the second part of the implementation of bpo-39320. Part 1 was #17984 This PR replaces BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL with DICT_MERGE and DICT_UPDATE. DICT_UPDATE n calls item_n.update(tos) where item_n is the nth item on the stack and tos is popped from the stack. DICT_MERGE n is the same, but raises an exception if there are duplicate keys. https://bugs.python.org/issue39320

Open Graph Description: This is the second part of the implementation of bpo-39320. Part 1 was #17984 This PR replaces BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL with DICT_MERGE and DICT_UPDATE. DICT_UPDATE n calls i...

X Description: This is the second part of the implementation of bpo-39320. Part 1 was #17984 This PR replaces BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL with DICT_MERGE and DICT_UPDATE. DICT_UPDATE n calls i...

Opengraph URL: https://github.com/python/cpython/pull/18141

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f6f2ee65-8e5c-43a4-314b-cb9ee2e5bf0f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id92C0:39E51F:8595C3:AE850D:696AEFDD
html-safe-noncecb32a9240caef4f9ac47ac5bcd9e7399c12e30e5074f5621f5c1cf71844eefd0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkMwOjM5RTUxRjo4NTk1QzM6QUU4NTBEOjY5NkFFRkREIiwidmlzaXRvcl9pZCI6IjI4ODk4MjM5ODA0MzgwODk2OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3af417ada1d905d39deb4ec13b3bd82e5ed2b2f82b41e272b17b7b5b121ee4a0
hovercard-subject-tagpull_request:366266505
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/18141/files
twitter:imagehttps://avatars.githubusercontent.com/u/9448417?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9448417?s=400&v=4
og:image:altThis is the second part of the implementation of bpo-39320. Part 1 was #17984 This PR replaces BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL with DICT_MERGE and DICT_UPDATE. DICT_UPDATE n calls i...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/18141/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F18141%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2F18141%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
Reloadhttps://github.com/python/cpython/pull/18141/files
Reloadhttps://github.com/python/cpython/pull/18141/files
Reloadhttps://github.com/python/cpython/pull/18141/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/18141/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k 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.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/18141/files
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 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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
markshannonhttps://github.com/markshannon
python:masterhttps://github.com/python/cpython/tree/master
markshannon:handle-dict-unpacking-in-compilerhttps://github.com/markshannon/cpython/tree/handle-dict-unpacking-in-compiler
Conversation 4 https://github.com/python/cpython/pull/18141
Commits 6 https://github.com/python/cpython/pull/18141/commits
Checks 0 https://github.com/python/cpython/pull/18141/checks
Files changed https://github.com/python/cpython/pull/18141/files
Please reload this pagehttps://github.com/python/cpython/pull/18141/files
bpo-39320: Handle unpacking of **values in compiler https://github.com/python/cpython/pull/18141/files#top
Show all changes 6 commits https://github.com/python/cpython/pull/18141/files
33464eb Add DICT_UPDATE and DICT_MERGE bytecodes. Use them for ** unpacking. markshannon Jan 13, 2020 https://github.com/python/cpython/pull/18141/commits/33464ebe265f0e1048ae899a66572f5814a49441
d123328 Remove BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL, as they are n… markshannon Jan 13, 2020 https://github.com/python/cpython/pull/18141/commits/d123328ac6fc04e8fe095443f75dc23dadd4ec10
6b9f0c4 Update magic number for ** unpacking opcodes. markshannon Jan 13, 2020 https://github.com/python/cpython/pull/18141/commits/6b9f0c49644a4729227870584541a3e7b06063d1
7a05eca Update dis.rst to incorporate new bytecodes. markshannon Jan 15, 2020 https://github.com/python/cpython/pull/18141/commits/7a05eca89d5f3c1a78ebc61b6cf715841a765f7c
95e421c Add blurb entry. markshannon Jan 15, 2020 https://github.com/python/cpython/pull/18141/commits/95e421cc7eeb59b3692141df8e72a1d8a499c32f
2d2fe4c Make news item a single paragraph. markshannon Jan 23, 2020 https://github.com/python/cpython/pull/18141/commits/2d2fe4cef7726b469d74e4e3d32de81a9da81334
Clear filters https://github.com/python/cpython/pull/18141/files
Please reload this pagehttps://github.com/python/cpython/pull/18141/files
Please reload this pagehttps://github.com/python/cpython/pull/18141/files
dis.rst https://github.com/python/cpython/pull/18141/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b
opcode.h https://github.com/python/cpython/pull/18141/files#diff-1cd1f0bb26c3fbaa279f83ee2bfe1d9072da7af07407111c79039c66034c57ed
_bootstrap_external.py https://github.com/python/cpython/pull/18141/files#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4
opcode.py https://github.com/python/cpython/pull/18141/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb
2020-01-15-15-50-22.bpo-39320.oWARyk.rst https://github.com/python/cpython/pull/18141/files#diff-2de34a9b5b998a9d29d237be76f1d37c1111932fc0fa90267a602a456850a2de
ceval.c https://github.com/python/cpython/pull/18141/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
compile.c https://github.com/python/cpython/pull/18141/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
importlib.h https://github.com/python/cpython/pull/18141/files#diff-f22c3fe718474bf1830c047f516ef95818493a9a9fcf8f2d5b159b1b5b76ecd6
importlib_external.h https://github.com/python/cpython/pull/18141/files#diff-edaa85591e6f559d0fae8073b45dc3e9c8e251053d07623b2ce23392dfe97a7e
opcode_targets.h https://github.com/python/cpython/pull/18141/files#diff-d3363a4083b77b9157d0bf07c2e87f3d3464a8b4360d5d23b07bbb23061f007a
Doc/library/dis.rsthttps://github.com/python/cpython/pull/18141/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b
View file https://github.com/markshannon/cpython/blob/2d2fe4cef7726b469d74e4e3d32de81a9da81334/Doc/library/dis.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/18141/{{ revealButtonHref }}
https://github.com/python/cpython/pull/18141/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b
https://github.com/python/cpython/pull/18141/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b
Include/opcode.hhttps://github.com/python/cpython/pull/18141/files#diff-1cd1f0bb26c3fbaa279f83ee2bfe1d9072da7af07407111c79039c66034c57ed
View file https://github.com/markshannon/cpython/blob/2d2fe4cef7726b469d74e4e3d32de81a9da81334/Include/opcode.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/18141/files
Lib/importlib/_bootstrap_external.pyhttps://github.com/python/cpython/pull/18141/files#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4
View file https://github.com/markshannon/cpython/blob/2d2fe4cef7726b469d74e4e3d32de81a9da81334/Lib/importlib/_bootstrap_external.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/18141/{{ revealButtonHref }}
https://github.com/python/cpython/pull/18141/files#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4
https://github.com/python/cpython/pull/18141/files#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4
https://github.com/python/cpython/pull/18141/files#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4
Lib/opcode.pyhttps://github.com/python/cpython/pull/18141/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb
View file https://github.com/markshannon/cpython/blob/2d2fe4cef7726b469d74e4e3d32de81a9da81334/Lib/opcode.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/18141/{{ revealButtonHref }}
https://github.com/python/cpython/pull/18141/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb
https://github.com/python/cpython/pull/18141/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb
Misc/NEWS.d/next/Core and Builtins/2020-01-15-15-50-22.bpo-39320.oWARyk.rsthttps://github.com/python/cpython/pull/18141/files#diff-2de34a9b5b998a9d29d237be76f1d37c1111932fc0fa90267a602a456850a2de
View file https://github.com/markshannon/cpython/blob/2d2fe4cef7726b469d74e4e3d32de81a9da81334/Misc/NEWS.d/next/Core%20and%20Builtins/2020-01-15-15-50-22.bpo-39320.oWARyk.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/18141/{{ revealButtonHref }}
Python/ceval.chttps://github.com/python/cpython/pull/18141/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
View file https://github.com/markshannon/cpython/blob/2d2fe4cef7726b469d74e4e3d32de81a9da81334/Python/ceval.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/18141/{{ revealButtonHref }}
https://github.com/python/cpython/pull/18141/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
https://github.com/python/cpython/pull/18141/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
Python/compile.chttps://github.com/python/cpython/pull/18141/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
View file https://github.com/markshannon/cpython/blob/2d2fe4cef7726b469d74e4e3d32de81a9da81334/Python/compile.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/18141/{{ revealButtonHref }}
https://github.com/python/cpython/pull/18141/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
https://github.com/python/cpython/pull/18141/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
https://github.com/python/cpython/pull/18141/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
https://github.com/python/cpython/pull/18141/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
https://github.com/python/cpython/pull/18141/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
https://github.com/python/cpython/pull/18141/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
https://github.com/python/cpython/pull/18141/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
https://github.com/python/cpython/pull/18141/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
Please reload this pagehttps://github.com/python/cpython/pull/18141/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.