Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6aedcfcd
Commit
6aedcfcd
authored
Oct 21, 2003
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some more items
parent
2fb4d519
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
Doc/whatsnew/whatsnew24.tex
Doc/whatsnew/whatsnew24.tex
+28
-3
No files found.
Doc/whatsnew/whatsnew24.tex
View file @
6aedcfcd
...
@@ -76,6 +76,10 @@ The \var{reverse} parameter should have a Boolean value. If the value is
...
@@ -76,6 +76,10 @@ The \var{reverse} parameter should have a Boolean value. If the value is
of
\code
{
L.sort() ; L.reverse()
}
, you can now write
of
\code
{
L.sort() ; L.reverse()
}
, you can now write
\code
{
L.sort(reverse=True)
}
.
\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}
\end{itemize}
...
@@ -109,6 +113,17 @@ details.
...
@@ -109,6 +113,17 @@ details.
\function
{
use
_
default
_
colors()
}
. On platforms where the terminal
\function
{
use
_
default
_
colors()
}
. On platforms where the terminal
supports transparency, this makes it possible to use a transparent background.
supports transparency, this makes it possible to use a transparent background.
(Contributed by J
\"
org Lehmann.)
(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}
\end{itemize}
...
@@ -124,7 +139,13 @@ Changes to Python's build process and to the C API include:
...
@@ -124,7 +139,13 @@ Changes to Python's build process and to the C API include:
\begin{itemize}
\begin{itemize}
\item
Detailed changes are listed here.
\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}
\end{itemize}
...
@@ -160,8 +181,12 @@ changes to your code:
...
@@ -160,8 +181,12 @@ changes to your code:
\begin{itemize}
\begin{itemize}
\item
dircache.listdir now passes exceptions to the caller,
\item
The
\function
{
zip()
}
built-in function and
\function
{
itertools.izip()
}
now return an empty list
instead of returning empty lists.
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}
\end{itemize}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment