mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add an item; small edits
This commit is contained in:
@@ -102,7 +102,7 @@ fixes. Here's a partial list of the most notable changes, sorted alphabetically
|
||||
by module name. Consult the :file:`Misc/NEWS` file in the source tree for a more
|
||||
complete list of changes, or look through the CVS logs for all the details.
|
||||
|
||||
* New data type in the :mod:`collections` module: :class:`NamedTuple(typename,
|
||||
* A new data type in the :mod:`collections` module: :class:`NamedTuple(typename,
|
||||
fieldnames)` is a factory function that creates subclasses of the standard tuple
|
||||
whose fields are accessible by name as well as index. For example::
|
||||
|
||||
@@ -115,7 +115,7 @@ complete list of changes, or look through the CVS logs for all the details.
|
||||
|
||||
(Contributed by Raymond Hettinger.)
|
||||
|
||||
* New method in the :mod:`curses` module: for a window, :meth:`chgat` changes
|
||||
* A new method in the :mod:`curses` module: for a window, :meth:`chgat` changes
|
||||
the display characters for a certain number of characters on a single line. ::
|
||||
|
||||
# Boldface text starting at y=0,x=21
|
||||
@@ -124,9 +124,14 @@ complete list of changes, or look through the CVS logs for all the details.
|
||||
|
||||
(Contributed by Fabian Kreutz.)
|
||||
|
||||
* The :func:`glob.glob` function can now return Unicode filenames if
|
||||
a Unicode path was used and Unicode filenames are matched within the directory.
|
||||
|
||||
.. % Patch #1001604
|
||||
|
||||
* The :mod:`gopherlib` module has been removed.
|
||||
|
||||
* New function in the :mod:`heapq` module: ``merge(iter1, iter2, ...)``
|
||||
* A new function in the :mod:`heapq` module: ``merge(iter1, iter2, ...)``
|
||||
takes any number of iterables that return data *in sorted order*, and returns
|
||||
a new iterator that returns the contents of all the iterators, also in sorted
|
||||
order. For example::
|
||||
@@ -136,7 +141,7 @@ complete list of changes, or look through the CVS logs for all the details.
|
||||
|
||||
(Contributed by Raymond Hettinger.)
|
||||
|
||||
* New function in the :mod:`itertools` module: ``izip_longest(iter1, iter2,
|
||||
* A new function in the :mod:`itertools` module: ``izip_longest(iter1, iter2,
|
||||
...[, fillvalue])`` makes tuples from each of the elements; if some of the
|
||||
iterables are shorter than others, the missing values are set to *fillvalue*.
|
||||
For example::
|
||||
|
||||
Reference in New Issue
Block a user