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
56fcc233
Commit
56fcc233
authored
May 06, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
markup adjustments
parent
ae20722d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
Doc/whatsnew/whatsnew24.tex
Doc/whatsnew/whatsnew24.tex
+10
-9
No files found.
Doc/whatsnew/whatsnew24.tex
View file @
56fcc233
...
...
@@ -33,8 +33,8 @@ rationale, refer to the PEP for a particular new feature.
%======================================================================
\section
{
PEP 218: Built-In Set Objects
}
Two new built-in types,
\function
{
set(
iterable
)
}
and
\function
{
frozenset(
iterable
)
}
provide high speed data types for
Two new built-in types,
\function
{
set(
\var
{
iterable
}
)
}
and
\function
{
frozenset(
\var
{
iterable
}
)
}
provide high speed data types for
membership testing, for eliminating duplicates from sequences, and
for mathematical operations like unions, intersections, differences,
and symmetric differences.
...
...
@@ -91,7 +91,7 @@ XXX write this.
%======================================================================
\section
{
PEP 322: Reverse Iteration
}
A new built-in function,
\function
{
reversed(
seq
)
}
, takes a sequence
A new built-in function,
\function
{
reversed(
\var
{
seq
}
)
}
, takes a sequence
and returns an iterator that returns the elements of the sequence
in reverse order.
...
...
@@ -208,9 +208,10 @@ they were input. For example, you can sort a list of people by name,
and then sort the list by age, resulting in a list sorted by age where
people with the same age are in name-sorted order.
\item
There is a new built-in function
\function
{
sorted(iterable)
}
that works
like the in-place
\method
{
list.sort()
}
method but has been made suitable
for use in expressions. The differences are:
\item
There is a new built-in function
\function
{
sorted(
\var
{
iterable
}
)
}
that works like the in-place
\method
{
list.sort()
}
method but has been made suitable for use in
expressions. The differences are:
\begin{itemize}
\item
the input may be any iterable;
\item
a newly formed copy is sorted, leaving the original intact; and
...
...
@@ -561,9 +562,9 @@ changes to your code:
\item
\function
{
dircache.listdir()
}
now passes exceptions to the caller
instead of returning empty lists.
\item
\function
{
LexicalHandler.startDTD
}
used to receive public and system ID
in the wrong order. This has been corrected; applications relying on the
wrong order need to be fixed.
\item
\function
{
LexicalHandler.startDTD
()
}
used to receive public and
system ID in the wrong order. This has been corrected; applications
relying on the
wrong order need to be fixed.
\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