| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:9a07d523-ec2c-8e53-c270-1f0b82855a00 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BC5C:388B78:CEB161:10B31FF:696B0105 |
| html-safe-nonce | 0f8b953e9e65dc90bf3436828c03e25d3e337b3e4d4f6d56f68420124c847db8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzVDOjM4OEI3ODpDRUIxNjE6MTBCMzFGRjo2OTZCMDEwNSIsInZpc2l0b3JfaWQiOiI0MTEwNzkzOTcxOTI1MTg4ODY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2149b457cc10a233b9d0efa4854fbf33e96d07fc20b15a049bbee4098205a1cf |
| hovercard-subject-tag | pull_request:3133102443 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/143257/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/cad194d6c1c2f99e8e00e15ab9fc6e7b6a60026d8307123d2a40a0872fbb7f81/python/cpython/pull/143257 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cad194d6c1c2f99e8e00e15ab9fc6e7b6a60026d8307123d2a40a0872fbb7f81/python/cpython/pull/143257 |
| og:image:alt | The sampling profiler code had numerous imports placed inside functions
rather than at module level. While deferred imports can reduce startup
time for rarely-used code paths, these imports were in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pablogsal |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/143257#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143257 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| 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 |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| 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/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%2F143257 |
|
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/143257 |
| Reload | https://github.com/python/cpython/pull/143257 |
| Reload | https://github.com/python/cpython/pull/143257 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/143257 |
|
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 page | https://github.com/python/cpython/pull/143257 |
|
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 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 |
| Jump to bottom | https://github.com/python/cpython/pull/143257#issue-comment-box |
| pablogsal | https://github.com/pablogsal |
| python:main | https://github.com/python/cpython/tree/main |
| pablogsal:imports | https://github.com/pablogsal/cpython/tree/imports |
|
gh-138122: Move local imports to module level in sampling profiler
| https://github.com/python/cpython/pull/143257#top |
| pablogsal | https://github.com/pablogsal |
| python:main | https://github.com/python/cpython/tree/main |
| pablogsal:imports | https://github.com/pablogsal/cpython/tree/imports |
|
Conversation
0
| https://github.com/python/cpython/pull/143257 |
|
Commits
6
| https://github.com/python/cpython/pull/143257/commits |
|
Checks
40
| https://github.com/python/cpython/pull/143257/checks |
|
Files changed
| https://github.com/python/cpython/pull/143257/files |
| Please reload this page | https://github.com/python/cpython/pull/143257 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
|
| https://github.com/pablogsal |
| pablogsal | https://github.com/pablogsal |
| Dec 28, 2025 | https://github.com/python/cpython/pull/143257#issue-3765847316 |
| Please reload this page | https://github.com/python/cpython/pull/143257 |
| Implement PEP 799 – A dedicated profiling package for organizing Python profiling tools #138122 | https://github.com/python/cpython/issues/138122 |
| Please reload this page | https://github.com/python/cpython/pull/143257 |
|
| https://github.com/pablogsal |
| Move local imports to module level in sampling profiler | https://github.com/python/cpython/pull/143257/commits/2f2b091d0a6cad734a460054c611eab949aa6695 |
| 2f2b091 | https://github.com/python/cpython/pull/143257/commits/2f2b091d0a6cad734a460054c611eab949aa6695 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Dec 28, 2025 | https://github.com/python/cpython/pull/143257#event-21770772429 |
| https://github.com/pablogsal |
| pablogsal | https://github.com/pablogsal |
|
skip issue
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20issue%22 |
|
skip news
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22 |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Dec 28, 2025 | https://github.com/python/cpython/pull/143257#event-21770772521 |
| https://github.com/picnixz |
| picnixz | https://github.com/picnixz |
| Dec 28, 2025 | https://github.com/python/cpython/pull/143257#event-21770813133 |
| https://github.com/picnixz |
| picnixz | https://github.com/picnixz |
|
skip issue
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20issue%22 |
| Dec 28, 2025 | https://github.com/python/cpython/pull/143257#event-21770817160 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
Dec 28, 2025
| https://github.com/python/cpython/pull/143257#ref-issue-3349958233 |
|
Implement PEP 799 – A dedicated profiling package for organizing Python profiling tools
#138122
| https://github.com/python/cpython/issues/138122 |
| https://github.com/picnixz |
| picnixz | https://github.com/picnixz |
|
type-refactor
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-refactor |
| Dec 28, 2025 | https://github.com/python/cpython/pull/143257#event-21770818088 |
| pablogsal | https://github.com/pablogsal |
| January 1, 2026 19:52 | https://github.com/python/cpython/pull/143257#commits-pushed-0f57ae3 |
|
| https://github.com/pablogsal |
| fixup! Move local imports to module level in sampling profiler | https://github.com/python/cpython/pull/143257/commits/0f57ae353eb05a1373ac6058802c92329112c343 |
| 0f57ae3 | https://github.com/python/cpython/pull/143257/commits/0f57ae353eb05a1373ac6058802c92329112c343 |
|
| https://github.com/pablogsal |
| fixup! Move local imports to module level in sampling profiler | https://github.com/python/cpython/pull/143257/commits/ea11292c652e4c4c399f0940085883e3cc29d1ac |
| ea11292 | https://github.com/python/cpython/pull/143257/commits/ea11292c652e4c4c399f0940085883e3cc29d1ac |
| https://github.com/pablogsal |
| pablogsal | https://github.com/pablogsal |
| force-pushed | https://github.com/python/cpython/compare/355f6270d2aa58c9409c02395a1802248b526a26..ea11292c652e4c4c399f0940085883e3cc29d1ac |
| 355f627 | https://github.com/python/cpython/commit/355f6270d2aa58c9409c02395a1802248b526a26 |
| ea11292 | https://github.com/python/cpython/commit/ea11292c652e4c4c399f0940085883e3cc29d1ac |
|
Compare
| https://github.com/python/cpython/compare/355f6270d2aa58c9409c02395a1802248b526a26..ea11292c652e4c4c399f0940085883e3cc29d1ac |
| January 1, 2026 20:36 | https://github.com/python/cpython/pull/143257#event-21820974748 |
| pablogsal | https://github.com/pablogsal |
| January 1, 2026 20:59 | https://github.com/python/cpython/pull/143257#commits-pushed-fe08e34 |
|
| https://github.com/pablogsal |
| fixup! fixup! Move local imports to module level in sampling profiler | https://github.com/python/cpython/pull/143257/commits/fe08e34a57e7814ae57384abf870384be9ab92ca |
| fe08e34 | https://github.com/python/cpython/pull/143257/commits/fe08e34a57e7814ae57384abf870384be9ab92ca |
|
| https://github.com/pablogsal |
| fixup! fixup! fixup! Move local imports to module level in sampling p… | https://github.com/python/cpython/pull/143257/commits/c8ac20d6bab79f6894d25c57c0ba288ba056dc36 |
| c8ac20d | https://github.com/python/cpython/pull/143257/commits/c8ac20d6bab79f6894d25c57c0ba288ba056dc36 |
| https://github.com/pablogsal |
| pablogsal | https://github.com/pablogsal |
| force-pushed | https://github.com/python/cpython/compare/c17097f3076dfec6018c9c33f5916e66664516e4..c8ac20d6bab79f6894d25c57c0ba288ba056dc36 |
| c17097f | https://github.com/python/cpython/commit/c17097f3076dfec6018c9c33f5916e66664516e4 |
| c8ac20d | https://github.com/python/cpython/commit/c8ac20d6bab79f6894d25c57c0ba288ba056dc36 |
|
Compare
| https://github.com/python/cpython/compare/c17097f3076dfec6018c9c33f5916e66664516e4..c8ac20d6bab79f6894d25c57c0ba288ba056dc36 |
| January 2, 2026 01:58 | https://github.com/python/cpython/pull/143257#event-21822415672 |
|
| https://github.com/pablogsal |
| Merge branch 'main' into imports | https://github.com/python/cpython/pull/143257/commits/0cd7ba1589afecfa5592e232e8370bb0c75f089f |
| 0cd7ba1 | https://github.com/python/cpython/pull/143257/commits/0cd7ba1589afecfa5592e232e8370bb0c75f089f |
| https://github.com/pablogsal |
| pablogsal | https://github.com/pablogsal |
| January 2, 2026 02:05 | https://github.com/python/cpython/pull/143257#event-21822439889 |
| https://github.com/pablogsal |
| pablogsal | https://github.com/pablogsal |
| 6b9a6c6 | https://github.com/python/cpython/commit/6b9a6c6ec3bbc9795df67b87340e2ea58f42b3d4 |
| Jan 2, 2026 | https://github.com/python/cpython/pull/143257#event-21822542810 |
| Please reload this page | https://github.com/python/cpython/pull/143257 |
| https://github.com/pablogsal |
| pablogsal | https://github.com/pablogsal |
| January 2, 2026 02:31 | https://github.com/python/cpython/pull/143257#event-21822542869 |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143257 |
|
skip news
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22 |
|
type-refactor
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-refactor |
| Please reload this page | https://github.com/python/cpython/pull/143257 |
|
| https://github.com/pablogsal |
|
| https://github.com/picnixz |
|
| 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 |