Skip to content

Commit 8ba8cc5

Browse files
bpo-37979: Add alternative to fromisoformat in documentation (GH-15596)
Adds a link to `dateutil.parser.isoparse` in the documentation. It would be nice to set up intersphinx for things like this, but I think we can leave that for a separate PR. CC: @pitrou [bpo-37979](https://bugs.python.org/issue37979) https://bugs.python.org/issue37979 Automerge-Triggered-By: @pitrou (cherry picked from commit 59725f3) Co-authored-by: Paul Ganssle <[email protected]>
1 parent 6b50c10 commit 8ba8cc5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Doc/library/datetime.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,9 @@ Other constructors, all class methods:
850850
.. caution::
851851

852852
This does not support parsing arbitrary ISO 8601 strings - it is only intended
853-
as the inverse operation of :meth:`datetime.isoformat`.
853+
as the inverse operation of :meth:`datetime.isoformat`. A more full-featured
854+
ISO 8601 parser, ``dateutil.parser.isoparse`` is available in the third-party package
855+
`dateutil <https://dateutil.readthedocs.io/en/stable/parser.html#dateutil.parser.isoparse>`_.
854856

855857
.. versionadded:: 3.7
856858

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Added a link to dateutil.parser.isoparse in the datetime.fromisoformat
2+
documentation. Patch by Paul Ganssle

0 commit comments

Comments
 (0)