Skip to content

Commit 6aedcfc

Browse files
committed
Add some more items
1 parent 2fb4d51 commit 6aedcfc

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

Doc/whatsnew/whatsnew24.tex

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ \section{Other Language Changes}
7676
of \code{L.sort() ; L.reverse()}, you can now write
7777
\code{L.sort(reverse=True)}.
7878

79+
\item The \function{zip()} built-in function and \function{itertools.izip()} now return an empty list
80+
instead of raising a \exception{TypeError} exception if called
81+
with no arguments.
82+
7983
\end{itemize}
8084

8185

@@ -109,6 +113,17 @@ \section{New, Improved, and Deprecated Modules}
109113
\function{use_default_colors()}. On platforms where the terminal
110114
supports transparency, this makes it possible to use a transparent background.
111115
(Contributed by J\"org Lehmann.)
116+
117+
\item The \module{random} module has a new method called \method{getrandbits(N)}
118+
which returns an N-bit long integer.
119+
120+
\item The regular expression language accepted by the \module{re} module
121+
was extended with simple conditional expressions, written as
122+
\code{(?(\var{group})\var{A}|\var{B})}. \var{group} is either a
123+
numeric group ID or a group name defined with \code{(?P<group>...)}
124+
earlier in the expression. If the specified group matched, the
125+
regular expression pattern \var{A} will be tested against the string; if
126+
the group didn't match, the pattern \var{B} will be used instead.
112127

113128
\end{itemize}
114129

@@ -124,7 +139,13 @@ \section{Build and C API Changes}
124139

125140
\begin{itemize}
126141

127-
\item Detailed changes are listed here.
142+
\item Three new convenience macros were added for common return
143+
values from extension functions: \csimplemacro{Py_RETURN_NONE},
144+
\csimplemacro{Py_RETURN_TRUE}, and \csimplemacro{Py_RETURN_FALSE}.
145+
146+
\item A new function, \cfunction{PyTuple_Pack(N, obj1, obj2, ...,
147+
objN)}, constructs tuples from a variable length argument list of
148+
Python objects.
128149

129150
\end{itemize}
130151

@@ -160,8 +181,12 @@ \section{Porting to Python 2.4}
160181

161182
\begin{itemize}
162183

163-
\item dircache.listdir now passes exceptions to the caller,
164-
instead of returning empty lists.
184+
\item The \function{zip()} built-in function and \function{itertools.izip()} now return an empty list
185+
instead of raising a \exception{TypeError} exception if called
186+
with no arguments.
187+
188+
\item \function{dircache.listdir()} now passes exceptions to the caller
189+
instead of returning empty lists.
165190

166191
\end{itemize}
167192

0 commit comments

Comments
 (0)