René's URL Explorer Experiment


Title: bpo-10381: Add timezone to datetime C API by pganssle · Pull Request #5032 · python/cpython · GitHub

Open Graph Title: bpo-10381: Add timezone to datetime C API by pganssle · Pull Request #5032 · python/cpython

X Title: bpo-10381: Add timezone to datetime C API by pganssle · Pull Request #5032 · python/cpython

Description: This adds C API access to timezone and the timezone.UTC singleton, per bpo-10381. @abalkin I didn't totally understand what you meant by "I am not sure whether PyDateTime_TimeZone details should be exposed in datetime.h because presumably programmers should access it through the abstract tzinfo interface.", so please clarify if this PR is exposing the details you referred to. https://bugs.python.org/issue10381

Open Graph Description: This adds C API access to timezone and the timezone.UTC singleton, per bpo-10381. @abalkin I didn't totally understand what you meant by "I am not sure whether PyDateTime_TimeZone details ...

X Description: This adds C API access to timezone and the timezone.UTC singleton, per bpo-10381. @abalkin I didn't totally understand what you meant by "I am not sure whether PyDateTime_TimeZone ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:09412145-59e4-df64-839e-6457564de5ea
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC112:3EE845:68C029B:92CB1CD:6A4FC085
html-safe-nonceeee0c0775ada8bdcfadfa82c50fc17b2281057173be2edda208e2d5dd586db3e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTEyOjNFRTg0NTo2OEMwMjlCOjkyQ0IxQ0Q6NkE0RkMwODUiLCJ2aXNpdG9yX2lkIjoiNjczOTUxMjQxNDY0NjAyNjM3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb267ca284564157b71db407d054f50e84defa387155a4ab4647d73d6ed19ca99
hovercard-subject-tagpull_request:160438044
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/5032/files
twitter:imagehttps://avatars.githubusercontent.com/u/1377457?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1377457?s=400&v=4
og:image:altThis adds C API access to timezone and the timezone.UTC singleton, per bpo-10381. @abalkin I didn't totally understand what you meant by "I am not sure whether PyDateTime_TimeZone details ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7d8f8209b188a80e19a6957836ab9229715797be5db1a04163963c674ccc33f6
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
releaseea848e83cf3bf3613dd7b13d52965a684fd23ec5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/5032/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F5032%2Ffiles
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%2F5032%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/5032/files
Reloadhttps://github.com/python/cpython/pull/5032/files
Reloadhttps://github.com/python/cpython/pull/5032/files
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/5032/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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
abalkinhttps://github.com/abalkin
python:masterhttps://github.com/python/cpython/tree/master
pganssle:timezone_apihttps://github.com/pganssle/cpython/tree/timezone_api
Conversation 24 https://github.com/python/cpython/pull/5032
Commits 8 https://github.com/python/cpython/pull/5032/commits
Checks 0 https://github.com/python/cpython/pull/5032/checks
Files changed https://github.com/python/cpython/pull/5032/files
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
bpo-10381: Add timezone to datetime C API https://github.com/python/cpython/pull/5032/files#top
Show all changes 8 commits https://github.com/python/cpython/pull/5032/files
7f1878b Add timezone to datetime C API pganssle Dec 28, 2017 https://github.com/python/cpython/pull/5032/commits/7f1878b2efde491665cc54191030e5965bd2b70d
20676ae Add documentation for timezone C API macros pganssle Dec 28, 2017 https://github.com/python/cpython/pull/5032/commits/20676ae546ad0e47419445e19f5b35fb6f628ff5
4a1bab6 Add dedicated tests for datetime type check macros pganssle Dec 29, 2017 https://github.com/python/cpython/pull/5032/commits/4a1bab62f0590d6f8a9c033a9adfd3f913834376
8728bd7 Remove superfluous C API test pganssle Dec 29, 2017 https://github.com/python/cpython/pull/5032/commits/8728bd7bcec5c05862dfdfa2c5074912e2db9336
2c20871 Drop support for TimeZoneType in datetime C API pganssle Jan 12, 2018 https://github.com/python/cpython/pull/5032/commits/2c208713dcf067997cb61443ae91981cd40648c3
0398e3c Expose UTC singleton to the datetime C API pganssle Jan 16, 2018 https://github.com/python/cpython/pull/5032/commits/0398e3c2ecf6345eee60d2e287b979cddc46e5d3
70642af Update datetime C-API documentation to include links pganssle Jan 20, 2018 https://github.com/python/cpython/pull/5032/commits/70642af03d4208e706856aecf9408d6846e410ed
9303050 Add reference count information for timezone constructors pganssle Jan 24, 2018 https://github.com/python/cpython/pull/5032/commits/930305077a3d6f4eceb1acda3b035560b1d70457
Clear filters https://github.com/python/cpython/pull/5032/files
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
datetime.rst https://github.com/python/cpython/pull/5032/files#diff-377158f0cc0f8e7ad3bba0f1a070fb4561821a4107394531c15c3a2be2d9391e
refcounts.dat https://github.com/python/cpython/pull/5032/files#diff-8ff1c587ae684b63fa94170a8defe58fde39ef0a7d296afffc5d89e3afb95725
datetime.h https://github.com/python/cpython/pull/5032/files#diff-960a2fb1acbfba484b637864e42213a0ab18eb282a90ab53310a95fbe5da64a9
datetimetester.py https://github.com/python/cpython/pull/5032/files#diff-917d5d1d1423993f37a643afa9f2a2f9caa3c0f91e06c0d7ebea1b879d53b4ef
2017-12-28-15-22-05.bpo-10381.a1E6aF.rst https://github.com/python/cpython/pull/5032/files#diff-85f2c9e5889088ffacfdd5cb47768614b785be9948886fbfbed33c466717d150
_datetimemodule.c https://github.com/python/cpython/pull/5032/files#diff-3ee250e3806e884518fd872e9148baf532de6ec54c1cdb4e7679fbb2869d9c47
_testcapimodule.c https://github.com/python/cpython/pull/5032/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
Doc/c-api/datetime.rsthttps://github.com/python/cpython/pull/5032/files#diff-377158f0cc0f8e7ad3bba0f1a070fb4561821a4107394531c15c3a2be2d9391e
View file https://github.com/pganssle/cpython/blob/930305077a3d6f4eceb1acda3b035560b1d70457/Doc/c-api/datetime.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/5032/{{ revealButtonHref }}
https://github.com/python/cpython/pull/5032/files#diff-377158f0cc0f8e7ad3bba0f1a070fb4561821a4107394531c15c3a2be2d9391e
pgansslehttps://github.com/pganssle
Jan 17, 2018https://github.com/python/cpython/pull/5032/files#r162083447
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@abalkinhttps://github.com/abalkin
@vadmiumhttps://github.com/vadmium
#4699https://github.com/python/cpython/pull/4699
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
https://github.com/python/cpython/pull/5032/files#diff-377158f0cc0f8e7ad3bba0f1a070fb4561821a4107394531c15c3a2be2d9391e
https://github.com/python/cpython/pull/5032/files#diff-377158f0cc0f8e7ad3bba0f1a070fb4561821a4107394531c15c3a2be2d9391e
pgansslehttps://github.com/pganssle
Jan 20, 2018https://github.com/python/cpython/pull/5032/files#r162788808
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
abalkinhttps://github.com/abalkin
Jan 23, 2018https://github.com/python/cpython/pull/5032/files#r163333740
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
pgansslehttps://github.com/pganssle
Jan 24, 2018https://github.com/python/cpython/pull/5032/files#r163646053
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@abalkinhttps://github.com/abalkin
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
abalkinhttps://github.com/abalkin
Jan 24, 2018https://github.com/python/cpython/pull/5032/files#r163698904
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
https://github.com/python/cpython/pull/5032/files#diff-377158f0cc0f8e7ad3bba0f1a070fb4561821a4107394531c15c3a2be2d9391e
https://github.com/python/cpython/pull/5032/files#diff-377158f0cc0f8e7ad3bba0f1a070fb4561821a4107394531c15c3a2be2d9391e
Doc/data/refcounts.dathttps://github.com/python/cpython/pull/5032/files#diff-8ff1c587ae684b63fa94170a8defe58fde39ef0a7d296afffc5d89e3afb95725
View file https://github.com/pganssle/cpython/blob/930305077a3d6f4eceb1acda3b035560b1d70457/Doc/data/refcounts.dat
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/5032/{{ revealButtonHref }}
https://github.com/python/cpython/pull/5032/files#diff-8ff1c587ae684b63fa94170a8defe58fde39ef0a7d296afffc5d89e3afb95725
https://github.com/python/cpython/pull/5032/files#diff-8ff1c587ae684b63fa94170a8defe58fde39ef0a7d296afffc5d89e3afb95725
Include/datetime.hhttps://github.com/python/cpython/pull/5032/files#diff-960a2fb1acbfba484b637864e42213a0ab18eb282a90ab53310a95fbe5da64a9
View file https://github.com/pganssle/cpython/blob/930305077a3d6f4eceb1acda3b035560b1d70457/Include/datetime.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/5032/{{ revealButtonHref }}
https://github.com/python/cpython/pull/5032/files#diff-960a2fb1acbfba484b637864e42213a0ab18eb282a90ab53310a95fbe5da64a9
abalkinhttps://github.com/abalkin
Jan 16, 2018https://github.com/python/cpython/pull/5032/files#r161826932
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
pgansslehttps://github.com/pganssle
Jan 16, 2018https://github.com/python/cpython/pull/5032/files#r161850415
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
https://github.com/python/cpython/pull/5032/files#diff-960a2fb1acbfba484b637864e42213a0ab18eb282a90ab53310a95fbe5da64a9
https://github.com/python/cpython/pull/5032/files#diff-960a2fb1acbfba484b637864e42213a0ab18eb282a90ab53310a95fbe5da64a9
https://github.com/python/cpython/pull/5032/files#diff-960a2fb1acbfba484b637864e42213a0ab18eb282a90ab53310a95fbe5da64a9
https://github.com/python/cpython/pull/5032/files#diff-960a2fb1acbfba484b637864e42213a0ab18eb282a90ab53310a95fbe5da64a9
https://github.com/python/cpython/pull/5032/files#diff-960a2fb1acbfba484b637864e42213a0ab18eb282a90ab53310a95fbe5da64a9
Lib/test/datetimetester.pyhttps://github.com/python/cpython/pull/5032/files#diff-917d5d1d1423993f37a643afa9f2a2f9caa3c0f91e06c0d7ebea1b879d53b4ef
View file https://github.com/pganssle/cpython/blob/930305077a3d6f4eceb1acda3b035560b1d70457/Lib/test/datetimetester.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/5032/{{ revealButtonHref }}
https://github.com/python/cpython/pull/5032/files#diff-917d5d1d1423993f37a643afa9f2a2f9caa3c0f91e06c0d7ebea1b879d53b4ef
https://github.com/python/cpython/pull/5032/files#diff-917d5d1d1423993f37a643afa9f2a2f9caa3c0f91e06c0d7ebea1b879d53b4ef
https://github.com/python/cpython/pull/5032/files#diff-917d5d1d1423993f37a643afa9f2a2f9caa3c0f91e06c0d7ebea1b879d53b4ef
vadmiumhttps://github.com/vadmium
Jan 19, 2018https://github.com/python/cpython/pull/5032/files#r162733137
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
pgansslehttps://github.com/pganssle
Jan 20, 2018https://github.com/python/cpython/pull/5032/files#r162787991
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/5032/files
https://github.com/python/cpython/pull/5032/files#diff-917d5d1d1423993f37a643afa9f2a2f9caa3c0f91e06c0d7ebea1b879d53b4ef
Misc/NEWS.d/next/C API/2017-12-28-15-22-05.bpo-10381.a1E6aF.rsthttps://github.com/python/cpython/pull/5032/files#diff-85f2c9e5889088ffacfdd5cb47768614b785be9948886fbfbed33c466717d150
View file https://github.com/pganssle/cpython/blob/930305077a3d6f4eceb1acda3b035560b1d70457/Misc/NEWS.d/next/C%20API/2017-12-28-15-22-05.bpo-10381.a1E6aF.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/5032/{{ revealButtonHref }}
Modules/_datetimemodule.chttps://github.com/python/cpython/pull/5032/files#diff-3ee250e3806e884518fd872e9148baf532de6ec54c1cdb4e7679fbb2869d9c47
View file https://github.com/pganssle/cpython/blob/930305077a3d6f4eceb1acda3b035560b1d70457/Modules/_datetimemodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/5032/{{ revealButtonHref }}
https://github.com/python/cpython/pull/5032/files#diff-3ee250e3806e884518fd872e9148baf532de6ec54c1cdb4e7679fbb2869d9c47
https://github.com/python/cpython/pull/5032/files#diff-3ee250e3806e884518fd872e9148baf532de6ec54c1cdb4e7679fbb2869d9c47
https://github.com/python/cpython/pull/5032/files#diff-3ee250e3806e884518fd872e9148baf532de6ec54c1cdb4e7679fbb2869d9c47
https://github.com/python/cpython/pull/5032/files#diff-3ee250e3806e884518fd872e9148baf532de6ec54c1cdb4e7679fbb2869d9c47
Please reload this pagehttps://github.com/python/cpython/pull/5032/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.