diff options
Diffstat (limited to 'Doc/library/numbers.rst')
-rw-r--r-- | Doc/library/numbers.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/numbers.rst b/Doc/library/numbers.rst index ef4bd80..e2d08bb 100644 --- a/Doc/library/numbers.rst +++ b/Doc/library/numbers.rst @@ -181,7 +181,7 @@ forward and reverse instances of any given operator. For example, def _operator_fallbacks(monomorphic_operator, fallback_operator): def forward(a, b): - if isinstance(b, (int, long, Fraction)): + if isinstance(b, (int, Fraction)): return monomorphic_operator(a, b) elif isinstance(b, float): return fallback_operator(float(a), b) |