Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-126883: Add check that timezone fields are in range fordatetime.fromisoformat#127242

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

Merged
pganssle merged 13 commits intopython:mainfromdonBarbos:issue-126883
May 19, 2025
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
a052a93
Add check that timezone fields are in range
donBarbosNov 25, 2024
5e2ddf8
Add use cases in Lib/test/datetimetester.py
donBarbosNov 25, 2024
72d4701
Add self to acknowledgements and news blurb
donBarbosNov 25, 2024
763ec67
Update for correct definition of exception
donBarbosNov 25, 2024
cc0d774
Update Lib/_pydatetime.py
donBarbosFeb 5, 2025
9adfc6e
Revert style changes
donBarbosFeb 5, 2025
eac790c
Merge branch 'main' into issue-126883
donBarbosFeb 5, 2025
d908d9d
Merge branch 'main' into issue-126883
donBarbosFeb 5, 2025
0b740a4
Merge branch 'main' into issue-126883
donBarbosFeb 12, 2025
5d8cde6
Merge branch 'main' into issue-126883
donBarbosFeb 21, 2025
8079a72
Make diff a little bit less
donBarbosFeb 24, 2025
b0a1707
Merge branch 'main' into issue-126883
donBarbosApr 10, 2025
5580d17
Apply suggestions from code review
donBarbosMay 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Make diff a little bit less
  • Loading branch information
@donBarbos
donBarbos committedFeb 24, 2025
commit8079a72541842c19f3150263e3fffc0a33bb4ba3
12 changes: 5 additions & 7 deletionsLib/_pydatetime.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -463,7 +463,7 @@ def _parse_isoformat_time(tstr):

time_comps = _parse_hh_mm_ss_ff(timestr)

hour= time_comps[0]
hour, minute, second, microsecond= time_comps
became_next_day = False
error_from_components = False
error_from_tz = None
Expand DownExpand Up@@ -1961,12 +1961,10 @@ def fromisoformat(cls, date_string):

if tstr:
try:
(
time_components,
became_next_day,
error_from_components,
error_from_tz,
) = _parse_isoformat_time(tstr)
(time_components,
became_next_day,
error_from_components,
error_from_tz) = _parse_isoformat_time(tstr)
except ValueError:
raise ValueError(
f'Invalid isoformat string: {date_string!r}') from None
Expand Down
2 changes: 1 addition & 1 deletionMisc/ACKS
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1281,7 +1281,7 @@ Paul Moore
Ross Moore
Ben Morgan
Emily Morehouse
Semyon"donBarbos"Moroz
Semyon Moroz
Derek Morr
James A Morrison
Martin Morrison
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
Add check that timezone fields are in range for
:meth:`datetime.datetime.fromisoformat` and
:meth:`datetime.time.fromisoformat`. Patch by Semyon "donBarbos" Moroz
(donbarbos@proton.me)
:meth:`datetime.time.fromisoformat`. Patch by Semyon Moroz.
Loading

[8]ページ先頭

©2009-2025 Movatter.jp