|
33 | 33 | %====================================================================== |
34 | 34 | \section{PEP 218: Built-In Set Objects} |
35 | 35 |
|
36 | | -Two new built-in types, \function{set(iterable)} and |
37 | | -\function{frozenset(iterable)} provide high speed data types for |
| 36 | +Two new built-in types, \function{set(\var{iterable})} and |
| 37 | +\function{frozenset(\var{iterable})} provide high speed data types for |
38 | 38 | membership testing, for eliminating duplicates from sequences, and |
39 | 39 | for mathematical operations like unions, intersections, differences, |
40 | 40 | and symmetric differences. |
@@ -91,7 +91,7 @@ \section{PEP 237: Unifying Long Integers and Integers} |
91 | 91 | %====================================================================== |
92 | 92 | \section{PEP 322: Reverse Iteration} |
93 | 93 |
|
94 | | -A new built-in function, \function{reversed(seq)}, takes a sequence |
| 94 | +A new built-in function, \function{reversed(\var{seq})}, takes a sequence |
95 | 95 | and returns an iterator that returns the elements of the sequence |
96 | 96 | in reverse order. |
97 | 97 |
|
@@ -208,9 +208,10 @@ \section{Other Language Changes} |
208 | 208 | and then sort the list by age, resulting in a list sorted by age where |
209 | 209 | people with the same age are in name-sorted order. |
210 | 210 |
|
211 | | -\item There is a new built-in function \function{sorted(iterable)} that works |
212 | | -like the in-place \method{list.sort()} method but has been made suitable |
213 | | -for use in expressions. The differences are: |
| 211 | +\item There is a new built-in function |
| 212 | +\function{sorted(\var{iterable})} that works like the in-place |
| 213 | +\method{list.sort()} method but has been made suitable for use in |
| 214 | +expressions. The differences are: |
214 | 215 | \begin{itemize} |
215 | 216 | \item the input may be any iterable; |
216 | 217 | \item a newly formed copy is sorted, leaving the original intact; and |
@@ -561,9 +562,9 @@ \section{Porting to Python 2.4} |
561 | 562 | \item \function{dircache.listdir()} now passes exceptions to the caller |
562 | 563 | instead of returning empty lists. |
563 | 564 |
|
564 | | -\item \function{LexicalHandler.startDTD} used to receive public and system ID |
565 | | - in the wrong order. This has been corrected; applications relying on the |
566 | | - wrong order need to be fixed. |
| 565 | +\item \function{LexicalHandler.startDTD()} used to receive public and |
| 566 | + system ID in the wrong order. This has been corrected; applications |
| 567 | + relying on the wrong order need to be fixed. |
567 | 568 |
|
568 | 569 | \end{itemize} |
569 | 570 |
|
|
0 commit comments