Skip to content

Commit

Permalink
bpo-37979: Add alternative to fromisoformat in documentation (GH-15596)
Browse files Browse the repository at this point in the history
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 <paul@ganssle.io>
  • Loading branch information
miss-islington and pganssle committed Aug 29, 2019
1 parent 384c6d7 commit 9db66a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Doc/library/datetime.rst
Expand Up @@ -857,7 +857,9 @@ Other constructors, all class methods:
.. caution::

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

.. versionadded:: 3.7

Expand Down
@@ -0,0 +1,2 @@
Added a link to dateutil.parser.isoparse in the datetime.fromisoformat
documentation. Patch by Paul Ganssle

0 comments on commit 9db66a2

Please sign in to comment.