Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-91928: Adddatetime.UTC alias fordatetime.timezone.utc#91973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ghost commentedApr 27, 2022 • edited by ghost
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by ghost
Uh oh!
There was an error while loading.Please reload this page.
bedevere-bot commentedApr 27, 2022
Every change to Pythonrequires a NEWS entry. Please, add it using theblurb_it Web app or theblurb command-line tool. |
pganssle left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This looks great, thanks!
In addition to my other comments, two other things:
- As I believe you are a first-time contributor, you should probably add your name toMisc/ACKS.
- Maybe add a very simple test to
TestModule, like this:
deftest_utc_alias(self):self.assertIs(UTC,timezone.utc)
Thanks for your contribution!
Misc/NEWS.d/next/Library/2022-04-26-18-02-44.gh-issue-91928.V0YveU.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
bedevere-bot commentedApr 27, 2022
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Kab1r commentedApr 27, 2022
I have made the requested changes; please review again |
bedevere-bot commentedApr 27, 2022
Thanks for making the requested changes! @pganssle: please review the changes made to this pull request. |
pganssle left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can you add this test?
Maybe add a very simple test to TestModule, like this:
deftest_utc_alias(self):self.assertIs(UTC,timezone.utc)
Uh oh!
There was an error while loading.Please reload this page.
bedevere-bot commentedApr 27, 2022
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Kab1r commentedApr 27, 2022
I had to move the definition of |
Kab1r commentedApr 27, 2022
I have made the requested changes; please review again |
bedevere-bot commentedApr 27, 2022
Thanks for making the requested changes! @pganssle: please review the changes made to this pull request. |
1. Add UTC definition into C implementation as well (just for consistency, there's no particular reason not to simply assign the alias in the Python code later).2. Move `..versionadded` tag into the right place
c097669 to9542f54Comparepganssle commentedMay 3, 2022
Thanks@Kab1r! |
Resolves an issue Ken reported running tests in the QA farm,which is due to use of an interface from more-recent-python:python/cpython#91973
Uh oh!
There was an error while loading.Please reload this page.
fixes#91928
UTCis now module attribute aliased todatetime.timezone.utc.You can now do the following:
Automerge-Triggered-By: GH:pganssle