Repository navigation
gh-124549: Document that strptime() uses the last directive when a time unit is over-specified - #125009
Merged
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
|
This PR is stale because it has been open for 30 days with no activity. |
Mariatta
force-pushed
the
123449-docs-about-dtformat
branch
from
October 19, 2026 19:02
4988071 to
f8937f1
Compare
Documentation build overview
15 files changed ·
|
Co-authored-by: Stan Ulbrych <stan@python.org>
strptime() uses the last directive when a time unit is over-specified
Member
Member
|
@Mariatta did you mean to add the other labels for backports? I think backporting is good here. |
|
Thanks @Mariatta for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
Thanks @Mariatta for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
GH-159950 is a backport of this pull request to the 3.15 branch. |
|
GH-159951 is a backport of this pull request to the 3.14 branch. |
Mariatta
added a commit
that referenced
this pull request
Oct 20, 2026
…when a time unit is over-specified (GH-125009) (#159950) gh-124549: Document that `strptime()` uses the last directive when a time unit is over-specified (GH-125009) * Add a note that when over-specifying datetime format, only the last directive gets used. * adjust and reorganize the notes location, fast forward to latest. * Update Doc/library/datetime.rst --------- (cherry picked from commit fd6ed15) Co-authored-by: Mariatta <Mariatta@users.noreply.github.com> Co-authored-by: Stan Ulbrych <stan@python.org>
Mariatta
added a commit
that referenced
this pull request
Oct 20, 2026
…when a time unit is over-specified (GH-125009) (#159951) gh-124549: Document that `strptime()` uses the last directive when a time unit is over-specified (GH-125009) * Add a note that when over-specifying datetime format, only the last directive gets used. * adjust and reorganize the notes location, fast forward to latest. * Update Doc/library/datetime.rst --------- (cherry picked from commit fd6ed15) Co-authored-by: Mariatta <Mariatta@users.noreply.github.com> Co-authored-by: Stan Ulbrych <stan@python.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📚 Documentation preview 📚: https://cpython-previews--125009.org.readthedocs.build/
datetime.strptimeaccepts incompatible arguments #124549