GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — bpo-45335: Add note to `sqlite3` docs about "timestamp" converter by iafisher · Pull Request #29200 · python/cpython Conversation
|
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| numbers, its value will be truncated to microsecond precision by the | ||
| timestamp converter. | ||
|
|
||
| .. warning:: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We avoid using warnings in documentation. Instead we describe behavior using affirmative tone.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| .. warning:: | ||
|
|
||
| The "timestamp" converter ignores UTC offsets in the database and always | ||
| returns a naive :class:`datetime.datetime` object, so if you read a timestamp |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Outside of tutorials and howtos, we avoid addressing the reader as "you", instead using a style where the "you" is implied. Instead of saying:
If you want X, do Y.
simply say:
To achieve X, do Y.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actually, I'd drop that part of the sentence. The first part already says that UTC offsets are ignored; no need to exemplify it. How about something like this:
The "timestamp" converter ignores UTC offsets in the database and always
returns a naive :class:`datetime.datetime` object. To preserve UTC offsets
in timestamps, either leave converters disabled, or register offset-aware
converters with :func:`register_converter`.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| from the database with converters enabled and then write it back, any UTC | ||
| offset will be lost. | ||
|
|
||
| If you need to preserve UTC offsets in timestamps, then either leave |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Similarly, instead of if..then just say "To preserve... either... or". This way you avoid the explicit "you".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again. Thank you for the review. I have used Erlend's wording with minor changes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for making the requested changes! @ambv: please review the changes made to this pull request. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Should I backport this to older versions of Python as well? Is there documentation on how to do that? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Thanks for the reminder! I've added backport labels for @miss-islington :) The devguide has a section about backporting. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks! Hopefully it can be backported automatically, but if not I'll check out the devguide. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…thonGH-29200) (cherry picked from commit 3877fc0) Co-authored-by: Ian Fisher <[email protected]>
|
GH-29319 is a backport of this pull request to the 3.10 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…thonGH-29200) (cherry picked from commit 3877fc0) Co-authored-by: Ian Fisher <[email protected]>
|
GH-29320 is a backport of this pull request to the 3.9 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…-29200) (GH-29319) (cherry picked from commit 3877fc0) Co-authored-by: Ian Fisher <[email protected]>
…-29200) (GH-29320) (cherry picked from commit 3877fc0) Co-authored-by: Ian Fisher <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.