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

Various edits

parent 66d19e2a
...@@ -669,13 +669,15 @@ changes, or look through the Subversion logs for all the details. ...@@ -669,13 +669,15 @@ changes, or look through the Subversion logs for all the details.
as arguments to its constructor. as arguments to its constructor.
(Implemented by Mark Dickinson; :issue:`5812`.) (Implemented by Mark Dickinson; :issue:`5812`.)
* The :mod:`ftplib` module gained the ability to establish secure FTP * New class: a new :class:`ftplib.FTP_TLS` class in
the :mod:`ftplib` module provides secure FTP
connections using TLS encapsulation of authentication as well as connections using TLS encapsulation of authentication as well as
subsequent control and data transfers. This is provided by the new subsequent control and data transfers.
:class:`ftplib.FTP_TLS` class. (Contributed by Giampaolo Rodola', :issue:`2054`.)
(Contributed by Giampaolo Rodola', :issue:`2054`.) The :meth:`storbinary`
method for binary uploads can now restart uploads thanks to an added The :meth:`storbinary` method for binary uploads can now restart
*rest* parameter (patch by Pablo Mouzo; :issue:`6845`.) uploads thanks to an added *rest* parameter (patch by Pablo Mouzo;
:issue:`6845`.)
* New function: the :mod:`gc` module's :func:`is_tracked` returns * New function: the :mod:`gc` module's :func:`is_tracked` returns
true if a given instance is tracked by the garbage collector, false true if a given instance is tracked by the garbage collector, false
...@@ -707,9 +709,9 @@ changes, or look through the Subversion logs for all the details. ...@@ -707,9 +709,9 @@ changes, or look through the Subversion logs for all the details.
* The :mod:`imaplib` module now supports IPv6 addresses. * The :mod:`imaplib` module now supports IPv6 addresses.
(Contributed by Derek Morr; :issue:`1655`.) (Contributed by Derek Morr; :issue:`1655`.)
* The :mod:`io` library has been upgraded to the version shipped with * Updated module: The :mod:`io` library has been upgraded to the version shipped with
Python 3.1. For 3.1, the I/O library was entirely rewritten in C Python 3.1. For 3.1, the I/O library was entirely rewritten in C
and is 2 to 20 times faster depending on the task at hand. The and is 2 to 20 times faster depending on the task being performed. The
original Python version was renamed to the :mod:`_pyio` module. original Python version was renamed to the :mod:`_pyio` module.
One minor resulting change: the :class:`io.TextIOBase` class now One minor resulting change: the :class:`io.TextIOBase` class now
...@@ -753,7 +755,7 @@ changes, or look through the Subversion logs for all the details. ...@@ -753,7 +755,7 @@ changes, or look through the Subversion logs for all the details.
the input iterable. This was deemed a specification error, so they the input iterable. This was deemed a specification error, so they
now return an empty iterator. (Fixed by Raymond Hettinger; :issue:`4816`.) now return an empty iterator. (Fixed by Raymond Hettinger; :issue:`4816`.)
* The :mod:`json` module was upgraded to version 2.0.9 of the * Updated module: The :mod:`json` module was upgraded to version 2.0.9 of the
simplejson package, which includes a C extension that makes simplejson package, which includes a C extension that makes
encoding and decoding faster. encoding and decoding faster.
(Contributed by Bob Ippolito; :issue:`4136`.) (Contributed by Bob Ippolito; :issue:`4136`.)
...@@ -813,16 +815,17 @@ changes, or look through the Subversion logs for all the details. ...@@ -813,16 +815,17 @@ changes, or look through the Subversion logs for all the details.
now accept an optional *flags* argument, for consistency with the now accept an optional *flags* argument, for consistency with the
other functions in the module. (Added by Gregory P. Smith.) other functions in the module. (Added by Gregory P. Smith.)
* The :mod:`shutil` module's :func:`copyfile` and :func:`copytree` * New function: in the :mod:`shutil` module, :func:`make_archive`
functions now raises a :exc:`SpecialFileError` exception when takes a filename, archive type (zip or tar-format), and a directory
path, and creates an archive containing the directory's contents.
(Added by Tarek Ziadé.)
:mod:`shutil`'s :func:`copyfile` and :func:`copytree`
functions now raise a :exc:`SpecialFileError` exception when
asked to copy a named pipe. Previously the code would treat asked to copy a named pipe. Previously the code would treat
named pipes like a regular file by opening them for reading, and named pipes like a regular file by opening them for reading, and
this would block indefinitely. (Fixed by Antoine Pitrou; :issue:`3002`.) this would block indefinitely. (Fixed by Antoine Pitrou; :issue:`3002`.)
New function: :func:`make_archive` takes a filename, archive type
(zip or tar-format), and a directory path, and creates an archive
containing the directory's contents. (Added by Tarek Ziadé.)
* New functions: in the :mod:`site` module, three new functions * New functions: in the :mod:`site` module, three new functions
return various site- and user-specific paths. return various site- and user-specific paths.
:func:`getsitepackages` returns a list containing all :func:`getsitepackages` returns a list containing all
...@@ -890,6 +893,10 @@ changes, or look through the Subversion logs for all the details. ...@@ -890,6 +893,10 @@ changes, or look through the Subversion logs for all the details.
(Contributed by Gregory P. Smith.) (Contributed by Gregory P. Smith.)
The :mod:`subprocess` module will now retry its internal system calls
on receiving an :const:`EINTR` signal. (Reported by several people; final
patch by Gregory P. Smith in :issue:`1068268`.)
* New function: :func:`is_declared_global` in the :mod:`symtable` module * New function: :func:`is_declared_global` in the :mod:`symtable` module
returns true for variables that are explicitly declared to be global, returns true for variables that are explicitly declared to be global,
false for ones that are implicitly global. false for ones that are implicitly global.
...@@ -961,7 +968,7 @@ changes, or look through the Subversion logs for all the details. ...@@ -961,7 +968,7 @@ changes, or look through the Subversion logs for all the details.
:meth:`read` and :meth:`readline` now works correctly. :meth:`read` and :meth:`readline` now works correctly.
(Contributed by Nir Aides; :issue:`7610`.) (Contributed by Nir Aides; :issue:`7610`.)
The :func:`is_zipfile` function in the module now The :func:`is_zipfile` function now
accepts a file object, in addition to the path names accepted in earlier accepts a file object, in addition to the path names accepted in earlier
versions. (Contributed by Gabriel Genellina; :issue:`4756`.) versions. (Contributed by Gabriel Genellina; :issue:`4756`.)
...@@ -970,9 +977,6 @@ changes, or look through the Subversion logs for all the details. ...@@ -970,9 +977,6 @@ changes, or look through the Subversion logs for all the details.
:class:`ZipFile` constructor. (Contributed by Ronald Oussoren; :class:`ZipFile` constructor. (Contributed by Ronald Oussoren;
:issue:`6003`.) :issue:`6003`.)
* XXX the :mod:`shutil` module has now a :func:`make_archive` function
(see the module doc, contributed by Tarek)
New module: sysconfig New module: sysconfig
--------------------------------- ---------------------------------
......
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