Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Delta Between Two Patch Sets: Doc/whatsnew/3.4.rst

Issue 18878: Add support of the 'with' statement to sunau.open.
Left Patch Set: Created 6 years, 7 months ago
Right Patch Set: Created 6 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | Lib/sunau.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 **************************** 1 ****************************
2 What's New In Python 3.4 2 What's New In Python 3.4
3 **************************** 3 ****************************
4 4
5 .. :Author: Someone <email> 5 .. :Author: Someone <email>
6 (uncomment if there is a principal author) 6 (uncomment if there is a principal author)
7 7
8 .. Rules for maintenance: 8 .. Rules for maintenance:
9 9
10 * Anyone can add text to this document, but the maintainer reserves the 10 * Anyone can add text to this document, but the maintainer reserves the
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 314
315 socket 315 socket
316 ------ 316 ------
317 317
318 Socket objects have new methods to get or set their `inheritable flag 318 Socket objects have new methods to get or set their `inheritable flag
319 <fd_inheritance>`_: 319 <fd_inheritance>`_:
320 320
321 * :meth:`socket.socket.get_inheritable`, :meth:`socket.socket.set_inheritable` 321 * :meth:`socket.socket.get_inheritable`, :meth:`socket.socket.set_inheritable`
322 322
323 The ``socket.AF_*`` and ``socket.SOCK_*`` constants are enumeration values,
324 using the new :mod:`enum` module. This allows descriptive reporting during
325 debugging, instead of seeing integer "magic numbers".
323 326
324 ssl 327 ssl
325 --- 328 ---
326 329
327 TLSv1.1 and TLSv1.2 support. 330 TLSv1.1 and TLSv1.2 support.
328 331
329 (Contributed by Michele Orrù and Antoine Pitrou in :issue:`16692`) 332 (Contributed by Michele Orrù and Antoine Pitrou in :issue:`16692`)
330 333
331 * New diagnostic functions :func:`~ssl.get_default_verify_paths`, 334 * New diagnostic functions :func:`~ssl.get_default_verify_paths`,
332 :meth:`~ssl.SSLContext.cert_store_stats` and 335 :meth:`~ssl.SSLContext.cert_store_stats` and
(...skipping 23 matching lines...) Expand all
356 359
357 struct 360 struct
358 ------ 361 ------
359 362
360 Streaming struct unpacking using :func:`struct.iter_unpack`. 363 Streaming struct unpacking using :func:`struct.iter_unpack`.
361 364
362 (Contributed by Antoine Pitrou in :issue:`17804`.) 365 (Contributed by Antoine Pitrou in :issue:`17804`.)
363 366
364 367
365 sunau 368 sunau
366 ---- 369 -----
367 370
368 :meth:`sunau.open` now supports the context manager protocol. (Contributed 371 The :meth:`~sunau.getparams` method now returns a namedtuple rather than a
369 by Serhiy Storchaka in :issue:`18878`.) 372 plain tuple. (Contributed by Claudiu Popa in :issue:`18901`.)
373
374 :meth:`sunau.open` now supports the context manager protocol (:issue:`18878`).
370 375
371 376
372 urllib 377 urllib
373 ------ 378 ------
374 379
375 Add support.for ``data:`` URLs in :mod:`urllib.request`. 380 Add support.for ``data:`` URLs in :mod:`urllib.request`.
376 381
377 (Contributed by Mathias Panzenböck in :issue:`16423`.) 382 (Contributed by Mathias Panzenböck in :issue:`16423`.)
378 383
379 384
(...skipping 22 matching lines...) Expand all
402 New :class:`~weakref.WeakMethod` class simulates weak references to bound 407 New :class:`~weakref.WeakMethod` class simulates weak references to bound
403 methods. 408 methods.
404 409
405 (Contributed by Antoine Pitrou in :issue:`14631`.) 410 (Contributed by Antoine Pitrou in :issue:`14631`.)
406 411
407 412
408 xml.etree 413 xml.etree
409 --------- 414 ---------
410 415
411 Add an event-driven parser for non-blocking applications, 416 Add an event-driven parser for non-blocking applications,
412 :class:`~xml.etree.ElementTree.IncrementalParser`. 417 :class:`~xml.etree.ElementTree.XMLPullParser`.
413 418
414 (Contributed by Antoine Pitrou in :issue:`17782`.) 419 (Contributed by Antoine Pitrou in :issue:`17741`.)
415
416 420
417 Other improvements 421 Other improvements
418 ================== 422 ==================
419 423
420 Tab-completion is now enabled by default in the interactive interpreter. 424 Tab-completion is now enabled by default in the interactive interpreter.
421 425
422 (Contributed by Antoine Pitrou and Éric Araujo in :issue:`5845`.) 426 (Contributed by Antoine Pitrou and Éric Araujo in :issue:`5845`.)
423 427
424 428
425 Optimizations 429 Optimizations
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 wish to continue to ignore syntax or decoding issues, catch all three 533 wish to continue to ignore syntax or decoding issues, catch all three
530 exceptions now. 534 exceptions now.
531 535
532 * :func:`functools.update_wrapper` and :func:`functools.wraps` now correctly 536 * :func:`functools.update_wrapper` and :func:`functools.wraps` now correctly
533 set the ``__wrapped__`` attribute even if the wrapped function had a 537 set the ``__wrapped__`` attribute even if the wrapped function had a
534 wrapped attribute set. This means ``__wrapped__`` attributes now correctly 538 wrapped attribute set. This means ``__wrapped__`` attributes now correctly
535 link a stack of decorated functions rather than every ``__wrapped__`` 539 link a stack of decorated functions rather than every ``__wrapped__``
536 attribute in the chain referring to the innermost function. Introspection 540 attribute in the chain referring to the innermost function. Introspection
537 libraries that assumed the previous behaviour was intentional can use 541 libraries that assumed the previous behaviour was intentional can use
538 :func:`inspect.unwrap` to gain equivalent behaviour. 542 :func:`inspect.unwrap` to gain equivalent behaviour.
LEFTRIGHT
« no previous file | Lib/sunau.py » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+