Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-83461: Don't allow datetime parsing to accept non-ASCII digits#131008
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
base:main
Are you sure you want to change the base?
Changes from1 commit
c20c6da
decd90f
81276eb
0a3e67b
5d1d53d
a0b0f07
d0e6a1f
2f6d8e2
ccabadf
35bc090
0637c29
71d7c8a
212c763
0201347
bebb241
40d2368
77c936a
e652581
0115ee4
25a6705
3bca8e9
ddd1d01
0139e57
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -431,8 +431,7 @@ Functions | ||
:func:`gmtime` or :func:`localtime` to a string as specified by the *format* | ||
argument. If *t* is not provided, the current time as returned by | ||
:func:`localtime` is used. *format* must be a string. :exc:`ValueError` is | ||
raised if any field in *t* is outside of the allowed range. | ||
0 is a legal argument for any position in the time tuple; if it is normally | ||
illegal the value is forced to a correct one. | ||
@@ -564,6 +563,9 @@ Functions | ||
When used with the :func:`strptime` function, ``%U`` and ``%W`` are only used in | ||
calculations when the day of the week and the year are specified. | ||
(5) | ||
The :func:`strptime` function does not accept non-ASCII digits for numeric values. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Should we mention the "non-locale-specific numeric format codes" here or, since it's not officially supported, we can be a bit lazy? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. @pganssle Do you want to do this too? Or should I? | ||
Here is an example, a format for dates compatible with that specified in the | ||
:rfc:`2822` Internet email standard. [1]_ :: | ||