]> granicus.if.org Git - python/commitdiff
Mention the new context parameter to FTP_TLS, and the small API change
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 16 Jan 2011 18:29:34 +0000 (18:29 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 16 Jan 2011 18:29:34 +0000 (18:29 +0000)
in subprocess.Popen.

Doc/whatsnew/3.2.rst

index 8dc241a2df8fc3aaca8d1d6ea9d5788d09d183c5..e8cf6284c5e9b524ed126a319e55761f9cd7fd7c 100644 (file)
@@ -1031,6 +1031,13 @@ also grew auto-closing context managers::
 (Contributed by Tarek Ziadé and Giampaolo Rodolà in :issue:`4972`, and
 by Georg Brandl in :issue:`8046` and :issue:`1286`.)
 
+The :class:`~ftplib.FTP_TLS` class now accepts a *context* parameter, which is a
+:class:`ssl.SSLContext` object allowing bundling SSL configuration options,
+certificates and private keys into a single (potentially long-lived)
+structure.
+
+(Contributed by Giampaolo Rodolà; :issue:`8806`.)
+
 popen
 -----
 
@@ -1883,3 +1890,11 @@ require changes to your code:
 
 * The new, longer :func:`str` value on floats may break doctests which rely on
   the old output format.
+
+* In :class:`subprocess.Popen`, the default value for *close_fds* is now
+  ``True`` under Unix; under Windows, it is ``True`` if the three standard
+  streams are set to ``None``, ``False`` otherwise.  Previously, *close_fds*
+  was always ``False`` by default, which produced difficult to solve bugs
+  or race conditions when open file descriptors would leak into the child
+  process.
+