summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/whatsnew23.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/whatsnew23.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/whatsnew23.tex')
-rw-r--r--Doc/whatsnew/whatsnew23.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/whatsnew/whatsnew23.tex b/Doc/whatsnew/whatsnew23.tex
index 0a007d5..b74403a 100644
--- a/Doc/whatsnew/whatsnew23.tex
+++ b/Doc/whatsnew/whatsnew23.tex
@@ -2325,13 +2325,15 @@ exists.
they're stored as 32-bit numbers and result in a negative value, but
in Python 2.4 they'll become positive long integers.
+% The empty groups below prevent conversion to guillemets.
There are a few ways to fix this warning. If you really need a
positive number, just add an \samp{L} to the end of the literal. If
you're trying to get a 32-bit integer with low bits set and have
-previously used an expression such as \code{~(1 << 31)}, it's probably
+previously used an expression such as \code{\textasciitilde(1 <{}< 31)},
+it's probably
clearest to start with all bits set and clear the desired upper bits.
For example, to clear just the top bit (bit 31), you could write
-\code{0xffffffffL {\&}{\textasciitilde}(1L<<31)}.
+\code{0xffffffffL {\&}{\textasciitilde}(1L<{}<31)}.
\item You can no longer disable assertions by assigning to \code{__debug__}.