diff options
author | Eli Boyarski <eli.boyarski@gmail.com> | 2017-07-24 00:39:07 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2017-07-24 00:39:07 (GMT) |
commit | 26248ef58dcf49619930ffa2e050ffa687a88601 (patch) | |
tree | 53da3d64906a686605443483a5c3d61e65fa0835 /Doc | |
parent | 4c7532e96da19f2d5543bdab2b972797699c37d5 (diff) | |
download | cpython-26248ef58dcf49619930ffa2e050ffa687a88601.zip cpython-26248ef58dcf49619930ffa2e050ffa687a88601.tar.gz cpython-26248ef58dcf49619930ffa2e050ffa687a88601.tar.bz2 |
bpo-30456: Clarify example for duplicates in second argument of isinstance (GH-1699)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/2to3.rst | 3 |
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 |