Skip to content

Commit ddd1d01

Browse files
committed
Adjust documentation to be specific about where non-ASCII digits are being rejected
1 parent 3bca8e9 commit ddd1d01

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Doc/library/datetime.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2628,7 +2628,8 @@ differences between platforms in handling of unsupported format specifiers.
26282628
``%:z`` was added.
26292629

26302630
.. versionchanged:: next
2631-
Non-ASCII digits are now rejected by ``strptime`` for numerical directives.
2631+
Non-ASCII digits are now rejected by ``strptime`` for non-locale-specific
2632+
numerical directives.
26322633

26332634
Technical Detail
26342635
^^^^^^^^^^^^^^^^

Doc/library/time.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,8 @@ Functions
568568
calculations when the day of the week and the year are specified.
569569

570570
(5)
571-
The :func:`strptime` function does not accept non-ASCII digits for numeric values.
571+
The :func:`strptime` function does not accept non-ASCII digits for
572+
non-locale-specific numeric format codes.
572573

573574
Here is an example, a format for dates compatible with that specified in the
574575
:rfc:`2822` Internet email standard. [1]_ ::
@@ -623,7 +624,8 @@ Functions
623624
documented as supported.
624625

625626
.. versionchanged:: next
626-
Non-ASCII digits are now rejected by ``strptime``.
627+
Non-ASCII digits are now rejected by ``strptime`` for non-locale-specific
628+
format codes.
627629

628630

629631
.. class:: struct_time

0 commit comments

Comments
 (0)