summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2017-11-23 20:27:25 (GMT)
committerGitHub <noreply@github.com>2017-11-23 20:27:25 (GMT)
commita645b23ffc76073a2eb4e77b88cb7648cfc6ef77 (patch)
tree236954a5c4d63658dc72a8d809cd18c413c12741 /Doc
parent70b2f8797146a56a6880743424f0bedf4fc30c62 (diff)
downloadcpython-a645b23ffc76073a2eb4e77b88cb7648cfc6ef77.zip
cpython-a645b23ffc76073a2eb4e77b88cb7648cfc6ef77.tar.gz
cpython-a645b23ffc76073a2eb4e77b88cb7648cfc6ef77.tar.bz2
bpo-30456: Clarify example for duplicates in second argument of isinstance (GH-1699)
(cherry picked from commit 26248ef58dcf49619930ffa2e050ffa687a88601)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/2to3.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/2to3.rst b/Doc/library/2to3.rst
index 4c9a528..1ab05a6 100644
--- a/Doc/library/2to3.rst
+++ b/Doc/library/2to3.rst
@@ -288,7 +288,8 @@ and off individually. They are described here in more detail.
Fixes duplicate types in the second argument of :func:`isinstance`. For
example, ``isinstance(x, (int, int))`` is converted to ``isinstance(x,
- (int))``.
+ int)`` and ``isinstance(x, (int, float, int))`` is converted to
+ ``isinstance(x, (int, float))``.
.. 2to3fixer:: itertools_imports