Skip to content

Commit 77c936a

Browse files
committed
Clarify non-ASCII parsing in news
1 parent 40d2368 commit 77c936a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ datetime
506506

507507
* When using digits in :meth:`datetime.date.strptime`,
508508
:meth:`datetime.datetime.strptime`, or :meth:`datetime.time.strptime`, a
509-
:exc:`ValueError` is raised if non-ASCII digits are specified.
509+
:exc:`ValueError` is raised if non-ASCII digits are specified for
510+
non-locale-specific numeric format codes.
510511
(Contributed by Stan Ulbrych in :gh:`131008`.)
511512

512513

@@ -888,8 +889,8 @@ sys.monitoring
888889
time
889890
----
890891

891-
* When using digits in :func:`time.strptime`, a :exc:`ValueError` is raised
892-
if non-ASCII digits are specified.
892+
* When using digits in :func:`time.strptime`, a :exc:`ValueError` is raised if
893+
non-ASCII digits are specified for non-locale-specific numeric format codes.
893894
(Contributed by Stan Ulbrych in :gh:`131008`.)
894895

895896

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Digits passed to :meth:`datetime.date.strptime`, :meth:`datetime.datetime.strptime`,
2-
:meth:`datetime.time.strptime` and :meth:`time.strptime` must now be ASCII.
2+
:meth:`datetime.time.strptime` and :meth:`time.strptime` must now be ASCII in
3+
non-locale-specific numeric format codes.

0 commit comments

Comments
 (0)