@@ -66,9 +66,41 @@ Some smaller changes made to the core Python language are:
6666New, Improved, and Deprecated Modules
6767=====================================
6868
69+ * The previously deprecated :func: `contextlib.nested ` function has been
70+ removed in favor of a plain :keyword: `with ` statement which can
71+ accept multiple context managers. The latter technique is faster
72+ (because it is built-in), and it does a better job finalizing multiple
73+ context managers when one of them raises an exception.
74+
75+ (Contributed by Georg Brandl and Mattias Brändström;
76+ `appspot issue 53094 <http://codereview.appspot.com/53094 >`_.)
77+
6978* The :class: `ftplib.FTP ` class now supports the context manager protocol
7079 (Contributed by Tarek Ziadé and Giampaolo Rodolà; :issue: `4972 `.)
7180
81+ * The :func: `shutil.copytree ` function has two new options:
82+
83+ * *ignore_dangling_symlinks *: when ``symlinks=False `` (meaning that the
84+ function copies the file pointed to by the symlink, not the symlink
85+ itself) this option will silence the error thrown if the file doesn't
86+ exist.
87+
88+ * *copy_function *: a callable that will be used to copy files.
89+ :func: `shutil.copy2 ` is used by default.
90+
91+ (Contributed by Tarek Ziadé.)
92+
93+ * The *sqlite3 * module has some new features:
94+
95+ * XXX *enable_load_extension *
96+
97+ * XXX *load_extension *
98+
99+ * New :class: `~sqlite3.Connection ` attribute
100+ :attr: `~sqlite3.Connection.in_transaction ` is :const: `True ` when there
101+ are uncommitted changes, and :const: `False ` otherwise. (Contributed
102+ by R. David Murray and Shashwat Anand, :issue: `8845 `.)
103+
72104* The :mod: `ssl ` module has a new class, :class: `~ssl.SSLContext ` which
73105 serves as a container for various persistent SSL data, such as protocol
74106 settings, certificates, private keys, and various other options.
@@ -110,38 +142,6 @@ New, Improved, and Deprecated Modules
110142
111143 (Contributed by Georg Brandl; :issue: `5675 `.)
112144
113- * The previously deprecated :func: `contextlib.nested ` function has been
114- removed in favor of a plain :keyword: `with ` statement which can
115- accept multiple context managers. The latter technique is faster
116- (because it is built-in), and it does a better job finalizing multiple
117- context managers when one of them raises an exception.
118-
119- (Contributed by Georg Brandl and Mattias Brändström;
120- `appspot issue 53094 <http://codereview.appspot.com/53094 >`_.)
121-
122- * The :func: `shutil.copytree ` function has two new options:
123-
124- * *ignore_dangling_symlinks *: when ``symlinks=False `` (meaning that the
125- function copies the file pointed to by the symlink, not the symlink
126- itself) this option will silence the error thrown if the file doesn't
127- exist.
128-
129- * *copy_function *: a callable that will be used to copy files.
130- :func: `shutil.copy2 ` is used by default.
131-
132- (Contributed by Tarek Ziade.)
133-
134- * The *sqlite3 * module has some new features:
135-
136- * XXX *enable_load_extension *
137-
138- * XXX *load_extension *
139-
140- * New :class: `~sqlite3.Connection ` attribute
141- :attr: `~sqlite3.Connection.in_transaction ` is :const: `True ` when there
142- are uncommitted changes, and :const: `False ` otherwise. (Contributed
143- by R. David Murray and Shashwat Anand, :issue: `8845 `.)
144-
145145
146146Multi-threading
147147===============
0 commit comments