summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/whatsnew20.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-11-11 06:14:05 (GMT)
committerFred Drake <fdrake@acm.org>2004-11-11 06:14:05 (GMT)
commit2269d865986dae552737fd0ffe86a58dd9f99dab (patch)
treebaa11b32cc7f8259d3927ddaaab826adefeaf318 /Doc/whatsnew/whatsnew20.tex
parentc6864832d70e2fbf05cad555269b1423e40ab73b (diff)
downloadcpython-2269d865986dae552737fd0ffe86a58dd9f99dab.zip
cpython-2269d865986dae552737fd0ffe86a58dd9f99dab.tar.gz
cpython-2269d865986dae552737fd0ffe86a58dd9f99dab.tar.bz2
Fix SF bug #1061770: Manual typesets bit-shift operators as guillemet
Diffstat (limited to 'Doc/whatsnew/whatsnew20.tex')
-rw-r--r--Doc/whatsnew/whatsnew20.tex3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/whatsnew/whatsnew20.tex b/Doc/whatsnew/whatsnew20.tex
index fe5378b..d376d9d 100644
--- a/Doc/whatsnew/whatsnew20.tex
+++ b/Doc/whatsnew/whatsnew20.tex
@@ -397,9 +397,10 @@ been added to Python 2.0. Augmented assignment operators include
statement \code{a += 2} increments the value of the variable
\code{a} by 2, equivalent to the slightly lengthier \code{a = a + 2}.
+% The empty groups below prevent conversion to guillemets.
The full list of supported assignment operators is \code{+=},
\code{-=}, \code{*=}, \code{/=}, \code{\%=}, \code{**=}, \code{\&=},
-\code{|=}, \verb|^=|, \code{>>=}, and \code{<<=}. Python classes can
+\code{|=}, \verb|^=|, \code{>{}>=}, and \code{<{}<=}. Python classes can
override the augmented assignment operators by defining methods named
\method{__iadd__}, \method{__isub__}, etc. For example, the following
\class{Number} class stores a number and supports using += to create a