Skip to content

Commit 7b52e94

Browse files
Docs
1 parent a2f4e4e commit 7b52e94

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Doc/library/datetime.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,13 +1076,12 @@ Other constructors, all class methods:
10761076
ISO 8601 format, with the following exceptions:
10771077

10781078
1. Time zone offsets may have fractional seconds.
1079-
2. The ``T`` separator may be replaced by any single unicode character.
1080-
3. Fractional hours and minutes are not supported.
1081-
4. Reduced precision dates are not currently supported (``YYYY-MM``,
1079+
2. Fractional hours and minutes are not supported.
1080+
3. Reduced precision dates are not currently supported (``YYYY-MM``,
10821081
``YYYY``).
1083-
5. Extended date representations are not currently supported
1082+
4. Extended date representations are not currently supported
10841083
(``±YYYYYY-MM-DD``).
1085-
6. Ordinal dates are not currently supported (``YYYY-OOO``).
1084+
5. Ordinal dates are not currently supported (``YYYY-OOO``).
10861085

10871086
Examples::
10881087

@@ -1111,6 +1110,8 @@ Other constructors, all class methods:
11111110
.. versionchanged:: 3.11
11121111
Previously, this method only supported formats that could be emitted by
11131112
:meth:`date.isoformat` or :meth:`datetime.isoformat`.
1113+
.. versionchanged:: next
1114+
Separators other than ``T`` are deprecated.
11141115

11151116

11161117
.. classmethod:: datetime.fromisocalendar(year, week, day)

Lib/_pydatetime.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import time as _time
1010
import math as _math
1111
import sys
12-
13-
import warnings
1412
from operator import index as _index
1513

1614
def _cmp(x, y):
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deprecate support for invalid ISO formats in :func:`datetime.datetime.fromisoformat`

0 commit comments

Comments
 (0)