[Python-checkins] python/dist/src/Doc/whatsnew whatsnew20.tex, 1.48.8.1, 1.48.8.2 whatsnew23.tex, 1.159.4.3, 1.159.4.4

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Thu Nov 11 07:16:45 CET 2004


Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14282/whatsnew

Modified Files:
      Tag: release23-maint
	whatsnew20.tex whatsnew23.tex 
Log Message:
Fix SF bug #1061770: Manual typesets bit-shift operators as guillemet

Index: whatsnew20.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew20.tex,v
retrieving revision 1.48.8.1
retrieving revision 1.48.8.2
diff -u -d -r1.48.8.1 -r1.48.8.2
--- whatsnew20.tex	20 Oct 2003 14:34:45 -0000	1.48.8.1
+++ whatsnew20.tex	11 Nov 2004 06:16:42 -0000	1.48.8.2
@@ -394,9 +394,10 @@
 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

Index: whatsnew23.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew23.tex,v
retrieving revision 1.159.4.3
retrieving revision 1.159.4.4
diff -u -d -r1.159.4.3 -r1.159.4.4
--- whatsnew23.tex	23 Dec 2003 16:47:44 -0000	1.159.4.3
+++ whatsnew23.tex	11 Nov 2004 06:16:42 -0000	1.159.4.4
@@ -2344,13 +2344,15 @@
 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__}.
 



More information about the Python-checkins mailing list