Victor Stinner | 01adf06 | 2014-03-18 00:53:32 +0100 | [diff] [blame] | 1 | **************************** |
| 2 | What's New In Python 3.5 |
| 3 | **************************** |
| 4 | |
| 5 | :Release: |release| |
| 6 | :Date: |today| |
| 7 | |
| 8 | .. Rules for maintenance: |
| 9 | |
| 10 | * Anyone can add text to this document. Do not spend very much time |
| 11 | on the wording of your changes, because your text will probably |
| 12 | get rewritten to some degree. |
| 13 | |
| 14 | * The maintainer will go through Misc/NEWS periodically and add |
| 15 | changes; it's therefore more important to add your changes to |
| 16 | Misc/NEWS than to this file. |
| 17 | |
| 18 | * This is not a complete list of every single change; completeness |
| 19 | is the purpose of Misc/NEWS. Some changes I consider too small |
| 20 | or esoteric to include. If such a change is added to the text, |
| 21 | I'll just remove it. (This is another reason you shouldn't spend |
| 22 | too much time on writing your addition.) |
| 23 | |
| 24 | * If you want to draw your new text to the attention of the |
| 25 | maintainer, add 'XXX' to the beginning of the paragraph or |
| 26 | section. |
| 27 | |
| 28 | * It's OK to just add a fragmentary note about a change. For |
| 29 | example: "XXX Describe the transmogrify() function added to the |
| 30 | socket module." The maintainer will research the change and |
| 31 | write the necessary text. |
| 32 | |
| 33 | * You can comment out your additions if you like, but it's not |
| 34 | necessary (especially when a final release is some months away). |
| 35 | |
| 36 | * Credit the author of a patch or bugfix. Just the name is |
| 37 | sufficient; the e-mail address isn't necessary. |
| 38 | |
| 39 | * It's helpful to add the bug/patch number as a comment: |
| 40 | |
| 41 | XXX Describe the transmogrify() function added to the socket |
| 42 | module. |
| 43 | (Contributed by P.Y. Developer in :issue:`12345`.) |
| 44 | |
| 45 | This saves the maintainer the effort of going through the Mercurial log |
| 46 | when researching a change. |
| 47 | |
| 48 | This article explains the new features in Python 3.5, compared to 3.4. |
| 49 | |
| 50 | For full details, see the :source:`Misc/NEWS` file. |
| 51 | |
| 52 | .. note:: Prerelease users should be aware that this document is currently in |
| 53 | draft form. It will be updated substantially as Python 3.5 moves towards |
| 54 | release, so it's worth checking back even after reading earlier versions. |
| 55 | |
| 56 | |
| 57 | .. seealso:: |
| 58 | |
Berker Peksag | fa0423b | 2014-10-09 11:38:19 +0300 | [diff] [blame] | 59 | :pep:`478` - Python 3.5 Release Schedule |
Victor Stinner | 01adf06 | 2014-03-18 00:53:32 +0100 | [diff] [blame] | 60 | |
| 61 | |
| 62 | Summary -- Release highlights |
| 63 | ============================= |
| 64 | |
| 65 | .. This section singles out the most important changes in Python 3.3. |
| 66 | Brevity is key. |
| 67 | |
| 68 | New syntax features: |
| 69 | |
| 70 | * None yet. |
| 71 | |
| 72 | New library modules: |
| 73 | |
| 74 | * None yet. |
| 75 | |
| 76 | New built-in features: |
| 77 | |
| 78 | * None yet. |
| 79 | |
| 80 | Implementation improvements: |
| 81 | |
Victor Stinner | 7143029 | 2014-03-18 01:18:21 +0100 | [diff] [blame] | 82 | * When the ``LC_TYPE`` locale is the POSIX locale (``C`` locale), |
| 83 | :py:data:`sys.stdin` and :py:data:`sys.stdout` are now using the |
| 84 | ``surrogateescape`` error handler, instead of the ``strict`` error handler |
| 85 | (:issue:`19977`). |
Victor Stinner | 01adf06 | 2014-03-18 00:53:32 +0100 | [diff] [blame] | 86 | |
| 87 | Significantly Improved Library Modules: |
| 88 | |
| 89 | * None yet. |
| 90 | |
| 91 | Security improvements: |
| 92 | |
| 93 | * None yet. |
| 94 | |
| 95 | Please read on for a comprehensive list of user-facing changes. |
| 96 | |
| 97 | |
| 98 | .. PEP-sized items next. |
| 99 | |
| 100 | .. _pep-4XX: |
| 101 | |
| 102 | .. PEP 4XX: Virtual Environments |
| 103 | .. ============================= |
| 104 | |
| 105 | |
| 106 | .. (Implemented by Foo Bar.) |
| 107 | |
| 108 | .. .. seealso:: |
| 109 | |
| 110 | :pep:`4XX` - Python Virtual Environments |
| 111 | PEP written by Carl Meyer |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | Other Language Changes |
| 117 | ====================== |
| 118 | |
| 119 | Some smaller changes made to the core Python language are: |
| 120 | |
| 121 | * None yet. |
| 122 | |
| 123 | |
| 124 | |
| 125 | New Modules |
| 126 | =========== |
| 127 | |
| 128 | .. module name |
| 129 | .. ----------- |
| 130 | |
| 131 | * None yet. |
| 132 | |
| 133 | |
| 134 | Improved Modules |
| 135 | ================ |
| 136 | |
R David Murray | c31e622 | 2014-09-29 11:25:00 -0400 | [diff] [blame] | 137 | code |
| 138 | ---- |
| 139 | |
| 140 | * The :func:`code.InteractiveInterpreter.showtraceback` method now prints |
| 141 | the full chained traceback, just like the interactive interpreter |
| 142 | (contributed by Claudiu.Popa in :issue:`17442`). |
| 143 | |
Brett Cannon | f1a8df0 | 2014-09-12 10:39:48 -0400 | [diff] [blame] | 144 | compileall |
| 145 | ---------- |
| 146 | |
| 147 | * :func:`compileall.compile_dir` and :mod:`compileall`'s command-line interface |
| 148 | can now do parallel bytecode compilation. |
| 149 | (Contributed by Claudiu Popa in :issue:`16104`). |
| 150 | |
Antoine Pitrou | b9d9ce7 | 2014-05-15 22:47:33 +0200 | [diff] [blame] | 151 | doctest |
| 152 | ------- |
Giampaolo Rodola' | e09fb71 | 2014-04-04 15:34:17 +0200 | [diff] [blame] | 153 | |
Antoine Pitrou | b9d9ce7 | 2014-05-15 22:47:33 +0200 | [diff] [blame] | 154 | * :func:`doctest.DocTestSuite` returns an empty :class:`unittest.TestSuite` if |
| 155 | *module* contains no docstrings instead of raising :exc:`ValueError` |
| 156 | (contributed by Glenn Jones in :issue:`15916`). |
| 157 | |
Serhiy Storchaka | c2edcdd | 2014-09-11 12:17:37 +0300 | [diff] [blame] | 158 | glob |
| 159 | ---- |
| 160 | |
| 161 | * :func:`~glob.iglob` and :func:`~glob.glob` now support recursive search in |
| 162 | subdirectories using the "``**``" pattern. |
| 163 | (Contributed by Serhiy Storchaka in :issue:`13968`.) |
| 164 | |
Serhiy Storchaka | 38684c3 | 2014-09-09 19:07:49 +0300 | [diff] [blame] | 165 | imaplib |
| 166 | ------- |
| 167 | |
| 168 | * :class:`IMAP4` now supports the context management protocol. When used in a |
| 169 | :keyword:`with` statement, the IMAP4 ``LOGOUT`` command will be called |
| 170 | automatically at the end of the block. (Contributed by Tarek Ziadé and |
| 171 | Serhiy Storchaka in :issue:`4972`). |
| 172 | |
R David Murray | 2f60820 | 2014-06-26 12:27:57 -0400 | [diff] [blame] | 173 | imghdr |
| 174 | ------ |
| 175 | |
| 176 | * :func:`~imghdr.what` now recognizes the `OpenEXR <http://www.openexr.com>`_ |
| 177 | format (contributed by Martin vignali and Cladui Popa in :issue:`20295`). |
| 178 | |
Antoine Pitrou | b9d9ce7 | 2014-05-15 22:47:33 +0200 | [diff] [blame] | 179 | importlib |
| 180 | --------- |
| 181 | |
| 182 | * :class:`importlib.util.LazyLoader` allows for the lazy loading of modules in |
| 183 | applications where startup time is paramount (contributed by Brett Cannon in |
| 184 | :issue:`17621`). |
| 185 | |
| 186 | * :func:`importlib.abc.InspectLoader.source_to_code` is now a |
| 187 | static method to make it easier to work with source code in a string. |
| 188 | With a module object that you want to initialize you can then use |
| 189 | ``exec(code, module.__dict__)`` to execute the code in the module. |
| 190 | |
Brett Cannon | 2a17bde | 2014-05-30 14:55:29 -0400 | [diff] [blame] | 191 | * :func:`importlib.util.module_from_spec` is now the preferred way to create a |
| 192 | new module. Compared to :class:`types.ModuleType`, this new function will set |
| 193 | the various import-controlled attributes based on the passed-in spec object. |
| 194 | |
Antoine Pitrou | b9d9ce7 | 2014-05-15 22:47:33 +0200 | [diff] [blame] | 195 | inspect |
| 196 | ------- |
Victor Stinner | 01adf06 | 2014-03-18 00:53:32 +0100 | [diff] [blame] | 197 | |
Yury Selivanov | a5d63dd | 2014-03-27 11:31:43 -0400 | [diff] [blame] | 198 | * :class:`inspect.Signature` and :class:`inspect.Parameter` are now |
Yury Selivanov | 67ae50e | 2014-04-08 11:46:50 -0400 | [diff] [blame] | 199 | picklable and hashable (contributed by Yury Selivanov in :issue:`20726` |
| 200 | and :issue:`20334`). |
Yury Selivanov | a5d63dd | 2014-03-27 11:31:43 -0400 | [diff] [blame] | 201 | |
Yury Selivanov | da39645 | 2014-03-27 12:09:24 -0400 | [diff] [blame] | 202 | * New class method :meth:`inspect.Signature.from_callable`, which makes |
| 203 | subclassing of :class:`~inspect.Signature` easier (contributed |
| 204 | by Yury Selivanov and Eric Snow in :issue:`17373`). |
| 205 | |
Antoine Pitrou | 0dfce56 | 2014-05-15 22:55:40 +0200 | [diff] [blame] | 206 | ipaddress |
| 207 | --------- |
| 208 | |
| 209 | * :class:`ipaddress.IPv4Network` and :class:`ipaddress.IPv6Network` now |
| 210 | accept an ``(address, netmask)`` tuple argument, so as to easily construct |
| 211 | network objects from existing addresses (contributed by Peter Moody |
| 212 | and Antoine Pitrou in :issue:`16531`). |
| 213 | |
Zachary Ware | 63f277b | 2014-06-19 09:46:37 -0500 | [diff] [blame] | 214 | os |
| 215 | -- |
| 216 | |
Victor Stinner | e1d24f7 | 2014-07-24 12:44:07 +0200 | [diff] [blame] | 217 | * :class:`os.stat_result` now has a :attr:`~os.stat_result.st_file_attributes` |
| 218 | attribute on Windows (contributed by Ben Hoyt in :issue:`21719`). |
Zachary Ware | 63f277b | 2014-06-19 09:46:37 -0500 | [diff] [blame] | 219 | |
Serhiy Storchaka | 9baa5b2 | 2014-09-29 22:49:23 +0300 | [diff] [blame] | 220 | re |
| 221 | -- |
| 222 | |
| 223 | * Number of capturing groups in regular expression is no longer limited by 100. |
| 224 | (Contributed by Serhiy Storchaka in :issue:`22437`.) |
| 225 | |
R David Murray | 6ffface | 2014-06-11 14:40:13 -0400 | [diff] [blame] | 226 | shutil |
| 227 | ------ |
| 228 | |
| 229 | * :func:`~shutil.move` now accepts a *copy_function* argument, allowing, |
| 230 | for example, :func:`~shutil.copy` to be used instead of the default |
| 231 | :func:`~shutil.copy2` if there is a need to ignore metadata. (Contributed by |
| 232 | Claudiu Popa in :issue:`19840`.) |
| 233 | |
Antoine Pitrou | b9d9ce7 | 2014-05-15 22:47:33 +0200 | [diff] [blame] | 234 | signal |
| 235 | ------ |
Brett Cannon | a04dbe4 | 2014-04-04 13:53:38 -0400 | [diff] [blame] | 236 | |
Antoine Pitrou | b9d9ce7 | 2014-05-15 22:47:33 +0200 | [diff] [blame] | 237 | * Different constants of :mod:`signal` module are now enumeration values using |
| 238 | the :mod:`enum` module. This allows meaningful names to be printed during |
Giampaolo Rodola' | 915d141 | 2014-06-11 03:54:30 +0200 | [diff] [blame] | 239 | debugging, instead of integer “magic numbers”. (contributed by Giampaolo |
Antoine Pitrou | b9d9ce7 | 2014-05-15 22:47:33 +0200 | [diff] [blame] | 240 | Rodola' in :issue:`21076`) |
R David Murray | 1976d9b | 2014-04-14 20:28:36 -0400 | [diff] [blame] | 241 | |
R David Murray | 554bcbf | 2014-06-11 11:18:08 -0400 | [diff] [blame] | 242 | smtpd |
| 243 | ----- |
| 244 | |
| 245 | * Both :class:`~smtpd.SMTPServer` and :class:`smtpd.SMTPChannel` now accept a |
| 246 | *decode_data* keyword to determine if the DATA portion of the SMTP |
| 247 | transaction is decoded using the ``utf-8`` codec or is instead provided to |
| 248 | :meth:`~smtpd.SMTPServer.process_message` as a byte string. The default |
| 249 | is ``True`` for backward compatibility reasons, but will change to ``False`` |
| 250 | in Python 3.6. (Contributed by Maciej Szulik in :issue:`19662`.) |
| 251 | |
R David Murray | 6fe56a3 | 2014-06-11 13:48:58 -0400 | [diff] [blame] | 252 | * It is now possible to provide, directly or via name resolution, IPv6 |
| 253 | addresses in the :class:`~smtpd.SMTPServer` constructor, and have it |
| 254 | successfully connect. (Contributed by Milan Oberkirch in :issue:`14758`.) |
| 255 | |
R David Murray | 2539e67 | 2014-08-09 16:40:49 -0400 | [diff] [blame] | 256 | * :mod:`~smtpd.SMTPServer` now supports :rfc:`6531` via the *enable_SMTPUTF8* |
| 257 | constructor argument and a user-provided |
| 258 | :meth:`~smtpd.SMTPServer.process_smtputf8_message` method. |
| 259 | |
R David Murray | 76e13c1 | 2014-07-03 14:47:46 -0400 | [diff] [blame] | 260 | smtplib |
| 261 | ------- |
| 262 | |
| 263 | * A new :meth:`~smtplib.SMTP.auth` method provides a convenient way to |
| 264 | implement custom authentication mechanisms (contributed by Milan Oberkirch in |
| 265 | :issue:`15014`). |
| 266 | |
R David Murray | 4487dd0 | 2014-10-09 16:59:30 -0400 | [diff] [blame] | 267 | sndhdr |
| 268 | ------ |
| 269 | |
| 270 | * :func:`~sndhdr.what` and :func:`~sndhdr.whathdr` now return |
| 271 | :func:`~collections.namedtuple` \s (contributed by Claudiu Popa in |
| 272 | :issue:`18615`). |
| 273 | |
Giampaolo Rodola' | 915d141 | 2014-06-11 03:54:30 +0200 | [diff] [blame] | 274 | socket |
| 275 | ------ |
| 276 | |
| 277 | * New :meth:`socket.socket.sendfile` method allows to send a file over a socket |
| 278 | by using high-performance :func:`os.sendfile` function on UNIX resulting in |
| 279 | uploads being from 2x to 3x faster than when using plain |
| 280 | :meth:`socket.socket.send`. |
| 281 | (contributed by Giampaolo Rodola' in :issue:`17552`) |
| 282 | |
Victor Stinner | ae58649 | 2014-09-02 23:18:25 +0200 | [diff] [blame] | 283 | time |
| 284 | ---- |
| 285 | |
Berker Peksag | 882c95c | 2014-10-09 11:46:56 +0300 | [diff] [blame] | 286 | * The :func:`time.monotonic` function is now always available. (Contributed by |
| 287 | Victor Stinner in :issue:`22043`.) |
Victor Stinner | ae58649 | 2014-09-02 23:18:25 +0200 | [diff] [blame] | 288 | |
Berker Peksag | 3e88722 | 2014-07-02 08:37:22 +0300 | [diff] [blame] | 289 | wsgiref |
| 290 | ------- |
| 291 | |
| 292 | * *headers* parameter of :class:`wsgiref.headers.Headers` is now optional. |
| 293 | (Contributed by Pablo Torres Navarrete and SilentGhost in :issue:`5800`.) |
| 294 | |
Antoine Pitrou | b9d9ce7 | 2014-05-15 22:47:33 +0200 | [diff] [blame] | 295 | xmlrpc |
| 296 | ------ |
| 297 | |
| 298 | * :class:`xmlrpc.client.ServerProxy` is now a :term:`context manager` |
| 299 | (contributed by Claudiu Popa in :issue:`20627`). |
Brett Cannon | 6eaac13 | 2014-05-09 12:28:22 -0400 | [diff] [blame] | 300 | |
Victor Stinner | 01adf06 | 2014-03-18 00:53:32 +0100 | [diff] [blame] | 301 | |
| 302 | Optimizations |
| 303 | ============= |
| 304 | |
Antoine Pitrou | b9d9ce7 | 2014-05-15 22:47:33 +0200 | [diff] [blame] | 305 | The following performance enhancements have been added: |
Victor Stinner | 01adf06 | 2014-03-18 00:53:32 +0100 | [diff] [blame] | 306 | |
Victor Stinner | 2bc4d95 | 2014-06-02 22:22:42 +0200 | [diff] [blame] | 307 | * Construction of ``bytes(int)`` (filled by zero bytes) is faster and use less |
| 308 | memory for large objects. ``calloc()`` is used instead of ``malloc()`` to |
Victor Stinner | db067af | 2014-05-02 22:31:14 +0200 | [diff] [blame] | 309 | allocate memory for these objects. |
Victor Stinner | 01adf06 | 2014-03-18 00:53:32 +0100 | [diff] [blame] | 310 | |
Antoine Pitrou | 0dfce56 | 2014-05-15 22:55:40 +0200 | [diff] [blame] | 311 | * Some operations on :class:`~ipaddress.IPv4Network` and |
| 312 | :class:`~ipaddress.IPv6Network` have been massively sped up, such as |
| 313 | :meth:`~ipaddress.IPv4Network.subnets`, :meth:`~ipaddress.IPv4Network.supernet`, |
| 314 | :func:`~ipaddress.summarize_address_range`, :func:`~ipaddress.collapse_addresses`. |
| 315 | The speed up can range from 3x to 15x. |
| 316 | (:issue:`21486`, :issue:`21487`, :issue:`20826`) |
| 317 | |
Victor Stinner | 01adf06 | 2014-03-18 00:53:32 +0100 | [diff] [blame] | 318 | |
| 319 | Build and C API Changes |
| 320 | ======================= |
| 321 | |
| 322 | Changes to Python's build process and to the C API include: |
| 323 | |
Victor Stinner | db067af | 2014-05-02 22:31:14 +0200 | [diff] [blame] | 324 | * New ``calloc`` functions: |
| 325 | |
| 326 | * :c:func:`PyMem_RawCalloc` |
| 327 | * :c:func:`PyMem_Calloc` |
| 328 | * :c:func:`PyObject_Calloc` |
| 329 | * :c:func:`_PyObject_GC_Calloc` |
Victor Stinner | 01adf06 | 2014-03-18 00:53:32 +0100 | [diff] [blame] | 330 | |
| 331 | |
| 332 | Deprecated |
| 333 | ========== |
| 334 | |
| 335 | Unsupported Operating Systems |
| 336 | ----------------------------- |
| 337 | |
| 338 | * None yet. |
| 339 | |
| 340 | |
| 341 | Deprecated Python modules, functions and methods |
| 342 | ------------------------------------------------ |
| 343 | |
Brett Cannon | a77d0c3 | 2014-03-21 10:52:33 -0400 | [diff] [blame] | 344 | * The :mod:`formatter` module has now graduated to full deprecation and is still |
| 345 | slated for removal in Python 3.6. |
Victor Stinner | 01adf06 | 2014-03-18 00:53:32 +0100 | [diff] [blame] | 346 | |
R David Murray | 554bcbf | 2014-06-11 11:18:08 -0400 | [diff] [blame] | 347 | * :mod:`smtpd` has in the past always decoded the DATA portion of email |
| 348 | messages using the ``utf-8`` codec. This can now be controlled by the new |
| 349 | *decode_data* keyword to :class:`~smtpd.SMTPServer`. The default value is |
| 350 | ``True``, but this default is deprecated. Specify the *decode_data* keyword |
| 351 | with an appropriate value to avoid the deprecation warning. |
| 352 | |
Victor Stinner | 01adf06 | 2014-03-18 00:53:32 +0100 | [diff] [blame] | 353 | |
| 354 | Deprecated functions and types of the C API |
| 355 | ------------------------------------------- |
| 356 | |
| 357 | * None yet. |
| 358 | |
| 359 | |
| 360 | Deprecated features |
| 361 | ------------------- |
| 362 | |
| 363 | * None yet. |
| 364 | |
| 365 | |
R David Murray | df75fee | 2014-10-03 13:02:47 -0400 | [diff] [blame] | 366 | Removed |
| 367 | ======= |
| 368 | |
| 369 | * The ``__version__`` attribute has been dropped from the email package. The |
| 370 | email code hasn't been shipped separately from the stdlib for a long time, |
| 371 | and the ``__version__`` string was not updated in the last few releases. |
| 372 | |
| 373 | |
Victor Stinner | 01adf06 | 2014-03-18 00:53:32 +0100 | [diff] [blame] | 374 | Porting to Python 3.5 |
| 375 | ===================== |
| 376 | |
| 377 | This section lists previously described changes and other bugfixes |
| 378 | that may require changes to your code. |
| 379 | |
Victor Stinner | db067af | 2014-05-02 22:31:14 +0200 | [diff] [blame] | 380 | Changes in the Python API |
| 381 | ------------------------- |
| 382 | |
Benjamin Peterson | ee6bdc0 | 2014-03-20 18:00:35 -0500 | [diff] [blame] | 383 | * Before Python 3.5, a :class:`datetime.time` object was considered to be false |
| 384 | if it represented midnight in UTC. This behavior was considered obscure and |
| 385 | error-prone and has been removed in Python 3.5. See :issue:`13936` for full |
| 386 | details. |
Antoine Pitrou | 92c4d45 | 2014-04-29 10:05:59 +0200 | [diff] [blame] | 387 | |
| 388 | * :meth:`ssl.SSLSocket.send()` now raises either :exc:`ssl.SSLWantReadError` |
| 389 | or :exc:`ssl.SSLWantWriteError` on a non-blocking socket if the operation |
| 390 | would block. Previously, it would return 0. See :issue:`20951`. |
Victor Stinner | db067af | 2014-05-02 22:31:14 +0200 | [diff] [blame] | 391 | |
Victor Stinner | 40ee301 | 2014-06-16 15:59:28 +0200 | [diff] [blame] | 392 | * The ``__name__`` attribute of generator is now set from the function name, |
| 393 | instead of being set from the code name. Use ``gen.gi_code.co_name`` to |
| 394 | retrieve the code name. Generators also have a new ``__qualname__`` |
| 395 | attribute, the qualified name, which is now used for the representation |
| 396 | of a generator (``repr(gen)``). See :issue:`21205`. |
| 397 | |
Ezio Melotti | 045160b | 2014-08-02 18:54:30 +0300 | [diff] [blame] | 398 | * The deprecated "strict" mode and argument of :class:`~html.parser.HTMLParser`, |
| 399 | :meth:`HTMLParser.error`, and the :exc:`HTMLParserError` exception have been |
| 400 | removed (contributed by Ezio Melotti in :issue:`15114`). |
| 401 | The *convert_charrefs* argument of :class:`~html.parser.HTMLParser` is |
| 402 | now ``True`` by default (contributed by Berker Peksag in :issue:`21047`). |
| 403 | |
R David Murray | 861470c | 2014-10-05 11:47:01 -0400 | [diff] [blame] | 404 | * Although it is not formally part of the API, it is worth noting for porting |
| 405 | purposes (ie: fixing tests) that error messages that were previously of the |
| 406 | form "'sometype' does not support the buffer protocol" are now of the form "a |
| 407 | bytes-like object is required, not 'sometype'" (contributed by Ezio Melotti |
| 408 | in :issue:`16518`). |
| 409 | |
Victor Stinner | db067af | 2014-05-02 22:31:14 +0200 | [diff] [blame] | 410 | Changes in the C API |
| 411 | -------------------- |
| 412 | |
Victor Stinner | d8f0d92 | 2014-06-02 21:57:10 +0200 | [diff] [blame] | 413 | * The :c:type:`PyMemAllocator` structure was renamed to |
| 414 | :c:type:`PyMemAllocatorEx` and a new ``calloc`` field was added. |