[Python-checkins] python/dist/src/Doc/whatsnew whatsnew24.tex, 1.4, 1.5

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Tue Oct 21 08:48:25 EDT 2003


Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1:/tmp/cvs-serv13731
Modified Files:
	whatsnew24.tex 
Log Message:
Add some more items
Index: whatsnew24.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew24.tex,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** whatsnew24.tex	21 Oct 2003 12:31:16 -0000	1.4
--- whatsnew24.tex	21 Oct 2003 12:48:23 -0000	1.5
***************
*** 77,80 ****
--- 77,84 ----
 \code{L.sort(reverse=True)}.
 
+ \item The \function{zip()} built-in function and \function{itertools.izip()} now return an empty list 
+ instead of raising a \exception{TypeError} exception if called
+ with no arguments.
+ 
 \end{itemize}
 
***************
*** 110,113 ****
--- 114,128 ----
 supports transparency, this makes it possible to use a transparent background.
 (Contributed by J\"org Lehmann.)
+ 
+ \item The \module{random} module has a new method called \method{getrandbits(N)} 
+ which returns an N-bit long integer.
+ 
+ \item The regular expression language accepted by the \module{re} module
+ was extended with simple conditional expressions, written as
+ \code{(?(\var{group})\var{A}|\var{B})}. \var{group} is either a
+ numeric group ID or a group name defined with \code{(?P<group>...)} 
+ earlier in the expression. If the specified group matched, the
+ regular expression pattern \var{A} will be tested against the string; if
+ the group didn't match, the pattern \var{B} will be used instead.
 
 \end{itemize}
***************
*** 125,129 ****
 \begin{itemize}
 
! \item Detailed changes are listed here.
 
 \end{itemize}
--- 140,150 ----
 \begin{itemize}
 
! \item Three new convenience macros were added for common return
! values from extension functions: \csimplemacro{Py_RETURN_NONE},
! \csimplemacro{Py_RETURN_TRUE}, and \csimplemacro{Py_RETURN_FALSE}.
! 
! \item A new function, \cfunction{PyTuple_Pack(N, obj1, obj2, ...,
! objN)}, constructs tuples from a variable length argument list of
! Python objects.
 
 \end{itemize}
***************
*** 161,166 ****
 \begin{itemize}
 
! \item dircache.listdir now passes exceptions to the caller, 
! instead of returning empty lists.
 
 \end{itemize}
--- 182,191 ----
 \begin{itemize}
 
! \item The \function{zip()} built-in function and \function{itertools.izip()} now return an empty list 
! instead of raising a \exception{TypeError} exception if called
! with no arguments.
! 
! \item \function{dircache.listdir()} now passes exceptions to the caller
! instead of returning empty lists.
 
 \end{itemize}


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /