| OLD | NEW |
| 1 **************************** | 1 **************************** |
| 2 What's New In Python 3.3 | 2 What's New In Python 3.3 |
| 3 **************************** | 3 **************************** |
| 4 | 4 |
| 5 :Author: Raymond Hettinger | 5 :Author: Raymond Hettinger |
| 6 :Release: |release| | 6 :Release: |release| |
| 7 :Date: |today| | 7 :Date: |today| |
| 8 | 8 |
| 9 .. Rules for maintenance: | 9 .. Rules for maintenance: |
| 10 | 10 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 with open("document.txt") as f: | 190 with open("document.txt") as f: |
| 191 content = f.read() | 191 content = f.read() |
| 192 except FileNotFoundError: | 192 except FileNotFoundError: |
| 193 print("document.txt file is missing") | 193 print("document.txt file is missing") |
| 194 except PermissionError: | 194 except PermissionError: |
| 195 print("You are not allowed to read document.txt") | 195 print("You are not allowed to read document.txt") |
| 196 | 196 |
| 197 | 197 |
| 198 PEP 380: Syntax for Delegating to a Subgenerator | 198 PEP 380: Syntax for Delegating to a Subgenerator |
| 199 ================================================ | 199 ================================================ |
| 200 |
| 201 :pep:`380` - Syntax for Delegating to a Subgenerator |
| 202 PEP written by Greg Ewing. |
| 200 | 203 |
| 201 PEP 380 adds the ``yield from`` expression, allowing a generator to delegate | 204 PEP 380 adds the ``yield from`` expression, allowing a generator to delegate |
| 202 part of its operations to another generator. This allows a section of code | 205 part of its operations to another generator. This allows a section of code |
| 203 containing 'yield' to be factored out and placed in another generator. | 206 containing 'yield' to be factored out and placed in another generator. |
| 204 Additionally, the subgenerator is allowed to return with a value, and the | 207 Additionally, the subgenerator is allowed to return with a value, and the |
| 205 value is made available to the delegating generator. | 208 value is made available to the delegating generator. |
| 206 While designed primarily for use in delegating to a subgenerator, the ``yield | 209 While designed primarily for use in delegating to a subgenerator, the ``yield |
| 207 from`` expression actually allows delegation to arbitrary subiterators. | 210 from`` expression actually allows delegation to arbitrary subiterators. |
| 208 | 211 |
| 209 (Implementation by Greg Ewing, integrated into 3.3 by Renaud Blanch, Ryan | 212 (Implementation by Greg Ewing, integrated into 3.3 by Renaud Blanch, Ryan |
| 210 Kelly and Nick Coghlan, documentation by Zbigniew Jędrzejewski-Szmek and | 213 Kelly and Nick Coghlan, documentation by Zbigniew Jędrzejewski-Szmek and |
| 211 Nick Coghlan) | 214 Nick Coghlan) |
| 215 |
| 216 |
| 217 PEP 409: Suppressing exception context |
| 218 ====================================== |
| 219 |
| 220 :pep:`409` - Suppressing exception context |
| 221 PEP written by Ethan Furman, implemented by Ethan Furman and Nick Coghlan. |
| 222 |
| 223 |
| 212 | 224 |
| 213 | 225 |
| 214 PEP 3155: Qualified name for classes and functions | 226 PEP 3155: Qualified name for classes and functions |
| 215 ================================================== | 227 ================================================== |
| 216 | 228 |
| 217 :pep:`3155` - Qualified name for classes and functions | 229 :pep:`3155` - Qualified name for classes and functions |
| 218 PEP written and implemented by Antoine Pitrou. | 230 PEP written and implemented by Antoine Pitrou. |
| 219 | 231 |
| 220 Functions and class objects have a new ``__qualname__`` attribute representing | 232 Functions and class objects have a new ``__qualname__`` attribute representing |
| 221 the "path" from the module top-level to their definition. For global functions | 233 the "path" from the module top-level to their definition. For global functions |
| (...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 ------------ | 955 ------------ |
| 944 | 956 |
| 945 .. Issue #11591: When :program:`python` was started with :option:`-S`, | 957 .. Issue #11591: When :program:`python` was started with :option:`-S`, |
| 946 ``import site`` will not add site-specific paths to the module search | 958 ``import site`` will not add site-specific paths to the module search |
| 947 paths. In previous versions, it did. See changeset for doc changes in | 959 paths. In previous versions, it did. See changeset for doc changes in |
| 948 various files. Contributed by Carl Meyer with editions by Éric Araujo. | 960 various files. Contributed by Carl Meyer with editions by Éric Araujo. |
| 949 | 961 |
| 950 .. Issue #10998: the -Q command-line flag and related artifacts have been | 962 .. Issue #10998: the -Q command-line flag and related artifacts have been |
| 951 removed. Code checking sys.flags.division_warning will need updating. | 963 removed. Code checking sys.flags.division_warning will need updating. |
| 952 Contributed by Éric Araujo. | 964 Contributed by Éric Araujo. |
| OLD | NEW |