From fb12044392a255a7aad5fb913e43afeb81a67a78 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 6 Apr 2010 20:27:59 +0000 Subject: [PATCH] Fix syntax. --- Doc/reference/expressions.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 60ab6ea672e..4341fceaa85 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -1000,7 +1000,9 @@ A right shift by *n* bits is defined as division by ``pow(2, n)``. A left shift by *n* bits is defined as multiplication with ``pow(2, n)``. Negative shift counts raise a :exc:`ValueError` exception. -.. note:: In the current implementation, the right-hand operand is required +.. note:: + + In the current implementation, the right-hand operand is required to be at most :attr:`sys.maxsize`. If the right-hand operand is larger than :attr:`sys.maxsize` an :exc:`OverflowError` exception is raised.