Commit fd0e494c authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Minor edits

parent 8178a22e
...@@ -322,10 +322,11 @@ euc-jisx0213, iso-2022-jp, iso-2022-jp-1, iso-2022-jp-2, ...@@ -322,10 +322,11 @@ euc-jisx0213, iso-2022-jp, iso-2022-jp-1, iso-2022-jp-2,
\item Korean: cp949, euc-kr, johab, iso-2022-kr \item Korean: cp949, euc-kr, johab, iso-2022-kr
\end{itemize} \end{itemize}
\item There is a new \module{collections} module which currently offers \item There is a new \module{collections} module for
just one new datatype, \class{deque}, which offers high-performance, various specialized collection datatypes.
thread-safe, memory friendly appends and pops on either side of the Currently it contains just one type, \class{deque},
deque resulting in efficient stacks and queues: a double-ended queue that supports efficiently adding and removing
elements from either end.
\begin{verbatim} \begin{verbatim}
>>> from collections import deque >>> from collections import deque
...@@ -344,12 +345,12 @@ deque(['f', 'g', 'h', 'i', 'j']) ...@@ -344,12 +345,12 @@ deque(['f', 'g', 'h', 'i', 'j'])
True True
\end{verbatim} \end{verbatim}
Several modules now take advantage of \class{collections.deque()} for Several modules now take advantage of \class{collections.deque} for
improved performance: \module{Queue}, \module{mutex}, \module{shlex} improved performance: \module{Queue}, \module{mutex}, \module{shlex}
\module{threading}, and \module{pydoc}. \module{threading}, and \module{pydoc}.
\item The \module{heapq} module has been converted to C. The resulting \item The \module{heapq} module has been converted to C. The resulting
ten-fold improvement in speed makes the module suitable for handling tenfold improvement in speed makes the module suitable for handling
high volumes of data. high volumes of data.
\item The \module{imaplib} module now supports IMAP's THREAD command. \item The \module{imaplib} module now supports IMAP's THREAD command.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment