Skip to content

Commit 4ec9b6b

Browse files
Oops fixups
1 parent 2315886 commit 4ec9b6b

3 files changed

Lines changed: 18 additions & 20 deletions

File tree

Doc/library/datetime.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2807,7 +2807,8 @@ Notes:
28072807
making assumptions about the output value. Field orderings will vary (for
28082808
example, "month/day/year" versus "day/month/year"), and the output may
28092809
contain non-ASCII characters. :meth:`~.datetime.strptime` rejects non-ASCII
2810-
digits for non-locale-specific numeric format codes (e.g. ``%Y``, ``%H``, etc).
2810+
digits for non-locale-specific numeric format codes (for example, ``%Y`` and
2811+
``%H``).
28112812

28122813
(2)
28132814
The :meth:`~.datetime.strptime` method can parse years in the full [1, 9999] range, but

Doc/whatsnew/3.15.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,16 +1102,6 @@ dataclasses
11021102
type names.
11031103

11041104

1105-
datetime
1106-
--------
1107-
1108-
* When using digits in :meth:`datetime.date.strptime`,
1109-
:meth:`datetime.datetime.strptime`, or :meth:`datetime.time.strptime`, a
1110-
:exc:`ValueError` is raised if non-ASCII digits are specified for
1111-
non-locale-specific numeric format codes.
1112-
(Contributed by Stan Ulbrych in :gh:`131008`.)
1113-
1114-
11151105
dbm
11161106
---
11171107

@@ -1879,14 +1869,6 @@ xml.parsers.expat
18791869
.. _billion laughs: https://en.wikipedia.org/wiki/Billion_laughs_attack
18801870

18811871

1882-
time
1883-
----
1884-
1885-
* When using digits in :func:`time.strptime`, a :exc:`ValueError` is raised if
1886-
non-ASCII digits are specified for non-locale-specific numeric format codes.
1887-
(Contributed by Stan Ulbrych in :gh:`131008`.)
1888-
1889-
18901872
zlib
18911873
----
18921874

@@ -1897,7 +1879,6 @@ zlib
18971879
(Contributed by Bénédikt Tran in :gh:`134635`.)
18981880

18991881

1900-
19011882
.. Add improved modules above alphabetically, not here at the end.
19021883
19031884
Optimizations

Doc/whatsnew/3.16.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,15 @@ asyncio
622622
Use :func:`asyncio.run` or :class:`asyncio.Runner` with a custom
623623
*loop_factory* instead.
624624

625+
datetime
626+
--------
627+
628+
* When using digits in :meth:`datetime.date.strptime`,
629+
:meth:`datetime.datetime.strptime`, or :meth:`datetime.time.strptime`, a
630+
:exc:`ValueError` is raised if non-ASCII digits are specified for
631+
non-locale-specific numeric format codes.
632+
(Contributed by Stan Ulbrych in :gh:`131008`.)
633+
625634
functools
626635
---------
627636

@@ -677,6 +686,13 @@ tarfile
677686
* The undocumented and unused :attr:`!tarfile.TarFile.tarfile` attribute
678687
has been deprecated since Python 3.13.
679688

689+
time
690+
----
691+
692+
* When using digits in :func:`time.strptime`, a :exc:`ValueError` is raised if
693+
non-ASCII digits are specified for non-locale-specific numeric format codes.
694+
(Contributed by Stan Ulbrych in :gh:`131008`.)
695+
680696
.. Add removals above alphabetically, not here at the end.
681697
682698

0 commit comments

Comments
 (0)