| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0d3f3798-5d9f-8d8b-9a9f-8eeff7d6a8d1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A8AE:11141E:FCEBAB:1517321:696992D0 |
| html-safe-nonce | 4bdf6a4206697a7612b372f5d4bcf4ba797e89cdadbbd7edb8816f0ecb95dbd5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEFFOjExMTQxRTpGQ0VCQUI6MTUxNzMyMTo2OTY5OTJEMCIsInZpc2l0b3JfaWQiOiI2NzcxNzQ5NDM4NDI3MzM3NDI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b8509abc46e356853b563dd754d716a1d0c49d8a040cd0ff2a60396ca7ca6748 |
| hovercard-subject-tag | pull_request:1288722368 |
| 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/102995/files |
| twitter:image | https://avatars.githubusercontent.com/u/13780613?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/13780613?s=400&v=4 |
| og:image:alt | Issue: gh-71587 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/102995/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F102995%2Ffiles |
| 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%2F102995%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/102995/files |
| Reload | https://github.com/python/cpython/pull/102995/files |
| Reload | https://github.com/python/cpython/pull/102995/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/102995/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 page | https://github.com/python/cpython/pull/102995/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 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 |
| erlend-aasland | https://github.com/erlend-aasland |
| python:main | https://github.com/python/cpython/tree/main |
| erlend-aasland:isolate-datetime/poc | https://github.com/erlend-aasland/cpython/tree/isolate-datetime/poc |
|
Conversation
16
| https://github.com/python/cpython/pull/102995 |
|
Commits
33
| https://github.com/python/cpython/pull/102995/commits |
|
Checks
0
| https://github.com/python/cpython/pull/102995/checks |
|
Files changed
| https://github.com/python/cpython/pull/102995/files |
| Please reload this page | https://github.com/python/cpython/pull/102995/files |
|
gh-71587: Isolate _datetime
| https://github.com/python/cpython/pull/102995/files#top |
|
Show all changes
33 commits
| https://github.com/python/cpython/pull/102995/files |
|
00c0ef0
Consistency: use explicit initialiser for m_base
erlend-aasland Feb 15, 2023
| https://github.com/python/cpython/pull/102995/commits/00c0ef028c74c6ea6c3e97c1b730ca780f35d7ba |
|
d1bbebb
Add module state stub; establish global state on stack
erlend-aasland Feb 15, 2023
| https://github.com/python/cpython/pull/102995/commits/d1bbebb039a3ab93e172293e8e40aef91247b4dc |
|
efeea77
Put conversion factors in state struct
erlend-aasland Feb 15, 2023
| https://github.com/python/cpython/pull/102995/commits/efeea77e8d1e1458976c403f88256132ca96c65e |
|
ef4a4c2
Move PyDateTime_TimeZone_UTC to state
erlend-aasland Feb 15, 2023
| https://github.com/python/cpython/pull/102995/commits/ef4a4c2f82725ffc08fd3af14123937574cc9b37 |
|
9e3f693
Move PyDateTime_Epoch to state struct
erlend-aasland Feb 15, 2023
| https://github.com/python/cpython/pull/102995/commits/9e3f693cc6c48733526d0bf99c599016074366aa |
|
5bd60b2
Remove datetime_strptime globals entry
erlend-aasland Feb 15, 2023
| https://github.com/python/cpython/pull/102995/commits/5bd60b2c47ca654eed5de4ebe5fe2621d530de3b |
|
b5c051b
Add heap type machinery
erlend-aasland Feb 15, 2023
| https://github.com/python/cpython/pull/102995/commits/b5c051b41784eca27dff46b34183d3993cad8215 |
|
0b23934
PyDateTime_DateTimeType
erlend-aasland Feb 21, 2023
| https://github.com/python/cpython/pull/102995/commits/0b2393428d26c3de9d700e2a8e88789ae7620733 |
|
9184c37
PyDateTime_DateType
erlend-aasland Feb 21, 2023
| https://github.com/python/cpython/pull/102995/commits/9184c37e9b5bf63f4e61e04671d3c8e19bfd067b |
|
d890013
PyDateTime_DeltaType
erlend-aasland Feb 21, 2023
| https://github.com/python/cpython/pull/102995/commits/d89001323d395a713147a72857e0f11fbf390d38 |
|
780f261
PyDateTime_IsoCalendarDateType
erlend-aasland Feb 21, 2023
| https://github.com/python/cpython/pull/102995/commits/780f261587c262facf091f90d4df2faabe835520 |
|
2d16589
Regen clinic
erlend-aasland Feb 21, 2023
| https://github.com/python/cpython/pull/102995/commits/2d16589f4a1a85c7c3b8f7a68d65e952ff9f2ac5 |
|
5566ce5
PyDateTime_TZInfoType and PyDateTime_TimeZoneType
erlend-aasland Feb 21, 2023
| https://github.com/python/cpython/pull/102995/commits/5566ce5871fc06d2937ae8a8c738a2846bf10c78 |
|
89775f3
PyDateTime_TimeType
erlend-aasland Feb 21, 2023
| https://github.com/python/cpython/pull/102995/commits/89775f3adca618ce67f97f47cb59606ad07aeee7 |
|
e798939
Visit and clear all types
erlend-aasland Feb 21, 2023
| https://github.com/python/cpython/pull/102995/commits/e798939d4cc28f5c54df4be68ba15427a7ffd1a5 |
|
78e0023
Get rid of GLOBAL_STATE
erlend-aasland Feb 21, 2023
| https://github.com/python/cpython/pull/102995/commits/78e00234f356fb94a2be85df4d1f321184ecff20 |
|
d392c1a
Fix binary ops
erlend-aasland Feb 25, 2023
| https://github.com/python/cpython/pull/102995/commits/d392c1a891d2bb657845a68a6afe1ae2bd575b43 |
|
7aaf57f
Unexpose IsoCalendarType
erlend-aasland Feb 25, 2023
| https://github.com/python/cpython/pull/102995/commits/7aaf57f764039c0b7ce025d5c54c954edcc332a9 |
|
206cdcc
_PyType_GetModuleState
erlend-aasland Feb 25, 2023
| https://github.com/python/cpython/pull/102995/commits/206cdcc596252e8fb85b0e198d5531e55e6cce1d |
|
304ca28
Pull in main
erlend-aasland Mar 24, 2023
| https://github.com/python/cpython/pull/102995/commits/304ca285f69da1a672a05f424191a9f4ed54fc89 |
|
8c53fa1
Remove time/datetime memory optimisation
erlend-aasland Mar 24, 2023
| https://github.com/python/cpython/pull/102995/commits/8c53fa170100436b400eaa668c53af5b60b7ea35 |
|
b583954
Remove unused get_module_state_by_cls() helper
erlend-aasland Mar 24, 2023
| https://github.com/python/cpython/pull/102995/commits/b583954c6dfedcb7bf69896174f15d889eb4e75a |
|
32211b8
Move _strptime import to state
erlend-aasland Mar 24, 2023
| https://github.com/python/cpython/pull/102995/commits/32211b893d96c21cb11cd8c5d1c9e58343e33f74 |
|
47862e8
Add NEWS
erlend-aasland Mar 24, 2023
| https://github.com/python/cpython/pull/102995/commits/47862e83b269f2ce8cacd963b422ec1d3b721b3e |
|
4eee17c
Pull in main
erlend-aasland Apr 28, 2023
| https://github.com/python/cpython/pull/102995/commits/4eee17c4d1a16d9c6fc2bd7ee3bf558c22703ad8 |
|
2be3e95
Pull in main
erlend-aasland Oct 6, 2023
| https://github.com/python/cpython/pull/102995/commits/2be3e95d705be5f65a985baac77fcb318d553da3 |
|
d97dfb0
Fix merge
erlend-aasland Oct 6, 2023
| https://github.com/python/cpython/pull/102995/commits/d97dfb0215ddb9e05c6a1dcca54984ece0628c92 |
|
f024817
Apply suggestions from code review
erlend-aasland Oct 6, 2023
| https://github.com/python/cpython/pull/102995/commits/f024817ab300834f4f326d2e8a5f07123b58e2a8 |
|
c23dd20
Address review: remove unused clinic_state() macro
erlend-aasland Oct 6, 2023
| https://github.com/python/cpython/pull/102995/commits/c23dd20bfbe53a626f35e2e574e626fa8f321660 |
|
a30bfdb
Improve CREATE_TYPE macro
erlend-aasland Oct 6, 2023
| https://github.com/python/cpython/pull/102995/commits/a30bfdb7d0e18470b9f3f8ffed9a565aae1f7365 |
|
d152b4c
Address review: Py_CLEAR state
erlend-aasland Oct 6, 2023
| https://github.com/python/cpython/pull/102995/commits/d152b4c14179c67f7bf7ed48387ec09fb43a8aca |
|
18b9007
Address review: visit and clear module state in member order
erlend-aasland Oct 6, 2023
| https://github.com/python/cpython/pull/102995/commits/18b9007a32173f6418a070583f9832a7a811f7ce |
|
0ee2374
Regen clinic
erlend-aasland Oct 6, 2023
| https://github.com/python/cpython/pull/102995/commits/0ee2374d27b56c3397d0de1375139ce16275b0ff |
|
Clear filters
| https://github.com/python/cpython/pull/102995/files |
| Please reload this page | https://github.com/python/cpython/pull/102995/files |
| Please reload this page | https://github.com/python/cpython/pull/102995/files |
|
2023-03-24-11-10-16.gh-issue-71587.q4ueXs.rst
| https://github.com/python/cpython/pull/102995/files#diff-85de2aa1fb836e1e9ceb458e39839ae7d0d00bad601f21414d4bcc1adb39ccab |
|
_datetimemodule.c
| https://github.com/python/cpython/pull/102995/files#diff-3ee250e3806e884518fd872e9148baf532de6ec54c1cdb4e7679fbb2869d9c47 |
|
globals-to-fix.tsv
| https://github.com/python/cpython/pull/102995/files#diff-8d1e9a0d5771dfc3a628047509e2d4a1027327bd89392e5a3ec5fbd3d08cfa19 |
| Misc/NEWS.d/next/Library/2023-03-24-11-10-16.gh-issue-71587.q4ueXs.rst | https://github.com/python/cpython/pull/102995/files#diff-85de2aa1fb836e1e9ceb458e39839ae7d0d00bad601f21414d4bcc1adb39ccab |
|
View file
| https://github.com/erlend-aasland/cpython/blob/0ee2374d27b56c3397d0de1375139ce16275b0ff/Misc/NEWS.d/next/Library/2023-03-24-11-10-16.gh-issue-71587.q4ueXs.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/102995/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/102995/files |
|
| 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 |