Skip to content

Commit

Permalink
More new things in what's new
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Oct 6, 2010
1 parent fa9c38d commit cd889af
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Doc/whatsnew/3.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,13 @@ New, Improved, and Deprecated Modules
(By Nick Coghlan and Terrence Cole; :issue:`9567`, :issue:`3445`, and
:issue:`8814`.)

* The :mod:`nntplib` module gets a revamped implementation with better
bytes / unicode semantics as well as more practical APIs. These improvements
break compatibility with the nntplib version in Python 3.1, which was
partly dysfunctional in itself.

(Contributed by Antoine Pitrou in :issue:`9360`)

* The :mod:`abc` module now supports :func:`~abc.abstractclassmethod` and
:func:`~abc.abstractstaticmethod`.

Expand Down Expand Up @@ -338,6 +345,19 @@ New, Improved, and Deprecated Modules
(Contributed by Tarek Ziadé and Giampaolo Rodolà in :issue:`4972`, and
by Georg Brandl in :issue:`8046` and :issue:`1286`.)

* :class:`gzip.GzipFile` now implements the :class:`io.BufferedIOBase` ABC
(except for ``truncate()``), has a :meth:`~gzip.GzipFile.peek` method,
and supports unseekable as well as zero-padded file objects.

(Contributed by Antoine Pitrou, Nir Aides and Brian Curtin in :issue:`9962`,
:issue:`1675951`, :issue:`7471` and :issue:`2846`.)

The :mod:`gzip` module also gains the :func:`~gzip.compress` and
:func:`~gzip.decompress` functions for easier in-memory compression and
decompression.

(Contributed by Anand B. Pillai in :issue:`3488`.)

* The :mod:`os` module now has the :const:`ST_RDONLY` and :const:`ST_NOSUID`
constants, for use with the :func:`~os.statvfs` function.

Expand Down Expand Up @@ -569,6 +589,9 @@ Porting to Python 3.2
This section lists previously described changes and other bugfixes that may
require changes to your code:

* The :mod:`nntplib` module was reworked extensively, meaning that its APIs
are often incompatible with the 3.1 APIs.

* :class:`bytearray` objects cannot be used anymore as filenames: convert them
to :class:`bytes`.

Expand Down

0 comments on commit cd889af

Please sign in to comment.