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

Side by Side Diff: Doc/whatsnew/3.4.rst

Issue 18878: Add support of the 'with' statement to sunau.open.
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:
View unified diff | Download patch
« no previous file with comments | « no previous file | Lib/sunau.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 Streaming struct unpacking using :func:`struct.iter_unpack`. 363 Streaming struct unpacking using :func:`struct.iter_unpack`.
364 364
365 (Contributed by Antoine Pitrou in :issue:`17804`.) 365 (Contributed by Antoine Pitrou in :issue:`17804`.)
366 366
367 367
368 sunau 368 sunau
369 ----- 369 -----
370 370
371 The :meth:`~sunau.getparams` method now returns a namedtuple rather than a 371 The :meth:`~sunau.getparams` method now returns a namedtuple rather than a
372 plain tuple. (Contributed by Claudiu Popa in :issue:`18901`.) 372 plain tuple. (Contributed by Claudiu Popa in :issue:`18901`.)
373
374 :meth:`sunau.open` now supports the context manager protocol (:issue:`18878`).
373 375
374 376
375 urllib 377 urllib
376 ------ 378 ------
377 379
378 Add support.for ``data:`` URLs in :mod:`urllib.request`. 380 Add support.for ``data:`` URLs in :mod:`urllib.request`.
379 381
380 (Contributed by Mathias Panzenböck in :issue:`16423`.) 382 (Contributed by Mathias Panzenböck in :issue:`16423`.)
381 383
382 384
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 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
532 exceptions now. 534 exceptions now.
533 535
534 * :func:`functools.update_wrapper` and :func:`functools.wraps` now correctly 536 * :func:`functools.update_wrapper` and :func:`functools.wraps` now correctly
535 set the ``__wrapped__`` attribute even if the wrapped function had a 537 set the ``__wrapped__`` attribute even if the wrapped function had a
536 wrapped attribute set. This means ``__wrapped__`` attributes now correctly 538 wrapped attribute set. This means ``__wrapped__`` attributes now correctly
537 link a stack of decorated functions rather than every ``__wrapped__`` 539 link a stack of decorated functions rather than every ``__wrapped__``
538 attribute in the chain referring to the innermost function. Introspection 540 attribute in the chain referring to the innermost function. Introspection
539 libraries that assumed the previous behaviour was intentional can use 541 libraries that assumed the previous behaviour was intentional can use
540 :func:`inspect.unwrap` to gain equivalent behaviour. 542 :func:`inspect.unwrap` to gain equivalent behaviour.
OLDNEW
« no previous file with comments | « no previous file | Lib/sunau.py » ('j') | no next file with comments »

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