[Python-checkins] python/dist/src/Doc/whatsnew whatsnew23.tex,1.115,1.116
akuchling@users.sourceforge.net
akuchling@users.sourceforge.net
Mon, 10 Feb 2003 07:08:19 -0800
Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1:/tmp/cvs-serv14835
Modified Files:
whatsnew23.tex
Log Message:
Add Neil's suggestions for avoiding this warning
Index: whatsnew23.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew23.tex,v
retrieving revision 1.115
retrieving revision 1.116
diff -C2 -d -r1.115 -r1.116
*** whatsnew23.tex 7 Feb 2003 20:22:33 -0000 1.115
--- whatsnew23.tex 10 Feb 2003 15:08:16 -0000 1.116
***************
*** 2077,2083 ****
\item Large octal and hex literals such as
! 0xffffffff now trigger a \exception{FutureWarning} because currently
they're stored as 32-bit numbers and result in a negative value, but
! in Python 2.4 they'll become positive long integers.
\item You can no longer disable assertions by assigning to \code{__debug__}.
--- 2077,2091 ----
\item Large octal and hex literals such as
! \code{0xffffffff} now trigger a \exception{FutureWarning}. Currently
they're stored as 32-bit numbers and result in a negative value, but
! in Python 2.4 they'll become positive long integers.
!
! 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
! 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)}.
\item You can no longer disable assertions by assigning to \code{__debug__}.