René's URL Explorer Experiment


Title: gh-117045: Add code object to function version cache by gvanrossum · Pull Request #117028 · python/cpython · GitHub

Open Graph Title: gh-117045: Add code object to function version cache by gvanrossum · Pull Request #117028 · python/cpython

X Title: gh-117045: Add code object to function version cache by gvanrossum · Pull Request #117028 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: What? Changes to the function version cache: In addition to the function object, also store the code object, and allow the latter to be retrieved even if the function has been evicted. Stop assign...

X Description: What? Changes to the function version cache: In addition to the function object, also store the code object, and allow the latter to be retrieved even if the function has been evicted. Stop assign...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:5647e094-91c2-9cc1-5bcb-396b68b61874
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCEE4:38FA87:ADB9EF:E8B5A0:6A56A834
html-safe-nonce5b4add763c16124d2ffced0d2fce9a2b01b2ab0d912fbad3a7740c2cbd0b4d38
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUU0OjM4RkE4NzpBREI5RUY6RThCNUEwOjZBNTZBODM0IiwidmlzaXRvcl9pZCI6Ijc3Nzk1NjgyNTYwOTMxNjk3MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace6857dc3a37bdb03532f81049dc0d04edfa5725c70b0efa6652c1492d1df9cc4
hovercard-subject-tagpull_request:1780589462
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/117028/commits
twitter:imagehttps://opengraph.githubassets.com/a027b3468348a69c7d31aee53e031c9ce3a2e3d29e7d6983a6a3340a37183c80/python/cpython/pull/117028
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a027b3468348a69c7d31aee53e031c9ce3a2e3d29e7d6983a6a3340a37183c80/python/cpython/pull/117028
og:image:altWhat? Changes to the function version cache: In addition to the function object, also store the code object, and allow the latter to be retrieved even if the function has been evicted. Stop assign...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegvanrossum
hostnamegithub.com
expected-hostnamegithub.com
None13efe7fe8ecc41eda1078cbde8206041ed92bc54e29bcb737e9353dd9c407aad
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5466ebe023a0abf876a1e6c5d7602ee8f5e6a02b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/117028/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F117028%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F117028%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/117028/commits
Reloadhttps://github.com/python/cpython/pull/117028/commits
Reloadhttps://github.com/python/cpython/pull/117028/commits
Please reload this pagehttps://github.com/python/cpython/pull/117028/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/117028/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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
gvanrossumhttps://github.com/gvanrossum
python:mainhttps://github.com/python/cpython/tree/main
gvanrossum:func-version-cachehttps://github.com/gvanrossum/cpython/tree/func-version-cache
Conversationhttps://github.com/python/cpython/pull/117028
Commits14 (14)https://github.com/python/cpython/pull/117028/commits
Checkshttps://github.com/python/cpython/pull/117028/checks
Files changedhttps://github.com/python/cpython/pull/117028/files
gh-117045: Add code object to function version cachehttps://github.com/python/cpython/pull/117028/commits#top
gvanrossumhttps://github.com/gvanrossum
python:mainhttps://github.com/python/cpython/tree/main
gvanrossum:func-version-cachehttps://github.com/gvanrossum/cpython/tree/func-version-cache
Leave func_version zero after critical mutationshttps://github.com/python/cpython/pull/117028/commits/21dc79ce1011d94c0aa7fc1f6435490e9fc96b22
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
21dc79chttps://github.com/python/cpython/pull/117028/commits/21dc79ce1011d94c0aa7fc1f6435490e9fc96b22
https://github.com/python/cpython/tree/21dc79ce1011d94c0aa7fc1f6435490e9fc96b22
Change the function version cache to contain a (func, code) pairhttps://github.com/python/cpython/pull/117028/commits/51bc6260f9bc503ca8cd04f955dbf3cd2160eefe
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
51bc626https://github.com/python/cpython/pull/117028/commits/51bc6260f9bc503ca8cd04f955dbf3cd2160eefe
https://github.com/python/cpython/tree/51bc6260f9bc503ca8cd04f955dbf3cd2160eefe
Use _PyFrame_GetCode where needed; tweak a debug printhttps://github.com/python/cpython/pull/117028/commits/0d5f84945ce64a7a77ffda055e084967ff043dcc
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
0d5f849https://github.com/python/cpython/pull/117028/commits/0d5f84945ce64a7a77ffda055e084967ff043dcc
https://github.com/python/cpython/tree/0d5f84945ce64a7a77ffda055e084967ff043dcc
Clarify type of f_executablehttps://github.com/python/cpython/pull/117028/commits/b998bf2b0a54dcbcb7aba828a060609a1af6b07e
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
b998bf2https://github.com/python/cpython/pull/117028/commits/b998bf2b0a54dcbcb7aba828a060609a1af6b07e
https://github.com/python/cpython/tree/b998bf2b0a54dcbcb7aba828a060609a1af6b07e
Change the operand for _PUSH_FRAMEhttps://github.com/python/cpython/pull/117028/commits/fdbfe070ba973e9d6e9deea32daf45104dce01ae
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
fdbfe07https://github.com/python/cpython/pull/117028/commits/fdbfe070ba973e9d6e9deea32daf45104dce01ae
https://github.com/python/cpython/tree/fdbfe070ba973e9d6e9deea32daf45104dce01ae
Rewrite explanatory commenthttps://github.com/python/cpython/pull/117028/commits/fe149b23ae053f2fed9f45c526ea5b746ec40fe6
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
fe149b2https://github.com/python/cpython/pull/117028/commits/fe149b23ae053f2fed9f45c526ea5b746ec40fe6
https://github.com/python/cpython/tree/fe149b23ae053f2fed9f45c526ea5b746ec40fe6
Add code to the trace stack in translate_bytecode_to_trace()https://github.com/python/cpython/pull/117028/commits/0d0551ebc1f322cbecfc1b1855c5638a98da05c8
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
0d0551ehttps://github.com/python/cpython/pull/117028/commits/0d0551ebc1f322cbecfc1b1855c5638a98da05c8
https://github.com/python/cpython/tree/0d0551ebc1f322cbecfc1b1855c5638a98da05c8
Set operand for _PUSH/_POP_FRAME more consistentlyhttps://github.com/python/cpython/pull/117028/commits/b999d3e7f07161250e4ed67554911877eb540ef8
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
b999d3ehttps://github.com/python/cpython/pull/117028/commits/b999d3e7f07161250e4ed67554911877eb540ef8
https://github.com/python/cpython/tree/b999d3e7f07161250e4ed67554911877eb540ef8
Remove bogus asserthttps://github.com/python/cpython/pull/117028/commits/b8141cdef31fff03e4df27d4acf6d0a9f2d6542b
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
b8141cdhttps://github.com/python/cpython/pull/117028/commits/b8141cdef31fff03e4df27d4acf6d0a9f2d6542b
https://github.com/python/cpython/tree/b8141cdef31fff03e4df27d4acf6d0a9f2d6542b
Document and enforce invariantshttps://github.com/python/cpython/pull/117028/commits/0fd96be84aa28ad987f76686139037a6352b06c1
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
0fd96behttps://github.com/python/cpython/pull/117028/commits/0fd96be84aa28ad987f76686139037a6352b06c1
https://github.com/python/cpython/tree/0fd96be84aa28ad987f76686139037a6352b06c1
Enforce invariant differentlyhttps://github.com/python/cpython/pull/117028/commits/6748a56bd8059dd520d12bd4c8f7ce28ddf3536f
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
6748a56https://github.com/python/cpython/pull/117028/commits/6748a56bd8059dd520d12bd4c8f7ce28ddf3536f
https://github.com/python/cpython/tree/6748a56bd8059dd520d12bd4c8f7ce28ddf3536f
Revert "Remove bogus assert" (it's not my job to fix this)https://github.com/python/cpython/pull/117028/commits/fac617c5842ce3b5f710318ce2f337cc57815d08
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
fac617chttps://github.com/python/cpython/pull/117028/commits/fac617c5842ce3b5f710318ce2f337cc57815d08
https://github.com/python/cpython/tree/fac617c5842ce3b5f710318ce2f337cc57815d08
Address code reviewhttps://github.com/python/cpython/pull/117028/commits/37fab3cc323780dc5ac3cd9916eae89a526608ca
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
37fab3chttps://github.com/python/cpython/pull/117028/commits/37fab3cc323780dc5ac3cd9916eae89a526608ca
https://github.com/python/cpython/tree/37fab3cc323780dc5ac3cd9916eae89a526608ca
Merge remote-tracking branch 'origin/main' into func-version-cachehttps://github.com/python/cpython/pull/117028/commits/f3de0ef69d99784cdeb602dab27c61a2b2a5a2d5
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
f3de0efhttps://github.com/python/cpython/pull/117028/commits/f3de0ef69d99784cdeb602dab27c61a2b2a5a2d5
https://github.com/python/cpython/tree/f3de0ef69d99784cdeb602dab27c61a2b2a5a2d5
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.