python/dist/src/Doc/lib libfuncs.tex,1.174,1.175
![](https://secure.gravatar.com/avatar/7b43f399ad17706bee01be8cd20165b0.jpg?s=120&d=mm&r=g)
Update of /cvsroot/python/python/dist/src/Doc/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14800 Modified Files: libfuncs.tex Log Message: SF bug #1035279: hex() and oct() documentation is incorrect * Updated docs to reflected signed return values. * Fixed a doubled word typo. Index: libfuncs.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v retrieving revision 1.174 retrieving revision 1.175 diff -u -d -r1.174 -r1.175 --- libfuncs.tex 25 Aug 2004 10:42:39 -0000 1.174 +++ libfuncs.tex 30 Sep 2004 00:59:08 -0000 1.175 @@ -506,12 +506,8 @@ \begin{funcdesc}{hex}{x} Convert an integer number (of any size) to a hexadecimal string. - The result is a valid Python expression. Note: this always yields - an unsigned literal. For example, on a 32-bit machine, - \code{hex(-1)} yields \code{'0xffffffff'}. When evaluated on a - machine with the same word size, this literal is evaluated as -1; at - a different word size, it may turn up as a large positive number or - raise an \exception{OverflowError} exception. + The result is a valid Python expression. + \versionchanged[Formerly only returned an unsigned literal.]{2.4} \end{funcdesc} \begin{funcdesc}{id}{object} @@ -670,12 +666,8 @@ \begin{funcdesc}{oct}{x} Convert an integer number (of any size) to an octal string. The - result is a valid Python expression. Note: this always yields an - unsigned literal. For example, on a 32-bit machine, \code{oct(-1)} - yields \code{'037777777777'}. When evaluated on a machine with the - same word size, this literal is evaluated as -1; at a different word - size, it may turn up as a large positive number or raise an - \exception{OverflowError} exception. + result is a valid Python expression. + \versionchanged[Formerly only returned an unsigned literal.]{2.4} \end{funcdesc} \begin{funcdesc}{open}{filename\optional{, mode\optional{, bufsize}}} @@ -1111,7 +1103,7 @@ Implementations may impose restrictions to achieve this. The C implementation of Python restricts all arguments to native C longs ("short" Python integers), and also requires - that that number of elements fit in a native C long.} + that the number of elements fit in a native C long.} \end{funcdesc} \begin{funcdesc}{zip}{\optional{seq1, \moreargs}}
participants (1)
-
rhettingerīŧ users.sourceforge.net