-
-
Notifications
You must be signed in to change notification settings - Fork 34k
gh-140715: provide support for %F token in strptime; add test for it and %T #140647
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jyalim
wants to merge
19
commits into
python:main
Choose a base branch
from
jyalim:fix-issue-140644
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+33
−3
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
92929d8
provide support for %F token in strptime; add test for it and %T
jyalim b1bf9b4
📜🤖 Added by blurb_it.
blurb-it[bot] d84fd54
rm comment as recommended
jyalim cb8d7d3
Update Misc/NEWS.d/next/Library/2025-10-27-00-13-04.gh-issue-140644.W…
jyalim 634ecea
Rename NEWS blurbit to match new github issue name
jyalim 2e94037
Update test_strptime.py to use unittest methods, as requested
jyalim c23b731
simplify news per recommendation
jyalim e77ff96
Remove datetime tests from test_strptime.py (added to `datetimetester…
jyalim ffbc215
Tests moved to datetimetester.py
jyalim fb63ae7
Merge branch 'main' into fix-issue-140644
StanFromIreland ff10b73
Update Misc/NEWS.d/next/Library/2025-10-27-00-13-04.gh-issue-140715.W…
jyalim b4ec5f8
Update Lib/test/test_strptime.py
jyalim 8513e1d
Update Lib/test/datetimetester.py
jyalim 0a928e6
Update Lib/test/datetimetester.py
jyalim 029ed4f
refactor test for %F as requested
jyalim 88c6f02
refactor test for %F and %T as requested
jyalim 707ea08
refactor test %T as requested; rename %F + %T tests to match datetime…
jyalim c61cb2f
add %F and %T tests, as requested, for ensuring strptime & strftime t…
jyalim 10ab774
remove (0) note for %F in documentation, as requested
jyalim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Library/2025-10-27-00-13-04.gh-issue-140715.WkozE0.rst
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add ``'%F'`` support to :meth:`~datetime.datetime.strptime`. |
Oops, something went wrong.
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.
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.
Why was the example changed?