Skip to content

Commit 6fabca6

Browse files
📜🤖 Added by blurb_it.
1 parent 043358a commit 6fabca6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Fix :func:`pprint.isreadable` to return ``False`` for ``float('inf')``,
2+
``float('-inf')``, and ``float('nan')``. Their string representations
3+
(``inf``, ``-inf``, ``nan``) are not valid Python literals and cannot
4+
be reconstructed via :func:`eval`, violating the documented contract of
5+
:func:`~pprint.isreadable`.

0 commit comments

Comments
 (0)