@@ -5,53 +5,59 @@ Python 3.6
5
5
6
6
Python 3.6 beta 1 was released on 12 Sep 2016, and a summary of the new features can be found here:
7
7
8
- +-----------------------------------------------------------------------------------------------------------+--------------+
9
- | **New Syntax Features: ** | **Status ** |
10
- +--------------------------------------------------------+--------------------------------------------------+--------------+
11
- | `PEP 498 <https://www.python.org/dev/peps/pep-0498/ >`_ | Literal String Formatting | |
12
- +--------------------------------------------------------+--------------------------------------------------+--------------+
13
- | `PEP 515 <https://www.python.org/dev/peps/pep-0515/ >`_ | Underscores in Numeric Literals | |
14
- +--------------------------------------------------------+--------------------------------------------------+--------------+
15
- | `PEP 525 <https://www.python.org/dev/peps/pep-0525/ >`_ | Asynchronous Generators | |
16
- +--------------------------------------------------------+--------------------------------------------------+--------------+
17
- | `PEP 526 <https://www.python.org/dev/peps/pep-0526/ >`_ | Syntax for Variable Annotations (provisional) | |
18
- +--------------------------------------------------------+--------------------------------------------------+--------------+
19
- | `PEP 530 <https://www.python.org/dev/peps/pep-0530/ >`_ | Asynchronous Comprehensions | |
20
- +--------------------------------------------------------+--------------------------------------------------+--------------+
21
- | **New Built-in Features: ** |
22
- +--------------------------------------------------------+--------------------------------------------------+--------------+
23
- | `PEP 468 <https://www.python.org/dev/peps/pep-0468/ >`_ | Preserving the order of *kwargs * in a function | |
24
- +--------------------------------------------------------+--------------------------------------------------+--------------+
25
- | `PEP 487 <https://www.python.org/dev/peps/pep-0487/ >`_ | Simpler customization of class creation | |
26
- +--------------------------------------------------------+--------------------------------------------------+--------------+
27
- | `PEP 520 <https://www.python.org/dev/peps/pep-0520/ >`_ | Preserving Class Attribute Definition Order | |
28
- +--------------------------------------------------------+--------------------------------------------------+--------------+
29
- | **Standard Library Changes: ** |
30
- +--------------------------------------------------------+--------------------------------------------------+--------------+
31
- | `PEP 495 <https://www.python.org/dev/peps/pep-0495/ >`_ | Local Time Disambiguation | |
32
- +--------------------------------------------------------+--------------------------------------------------+--------------+
33
- | `PEP 506 <https://www.python.org/dev/peps/pep-0506/ >`_ | Adding A Secrets Module To The Standard Library | |
34
- +--------------------------------------------------------+--------------------------------------------------+--------------+
35
- | `PEP 519 <https://www.python.org/dev/peps/pep-0519/ >`_ | Adding a file system path protocol | |
36
- +--------------------------------------------------------+--------------------------------------------------+--------------+
37
- | **CPython internals: ** |
38
- +--------------------------------------------------------+--------------------------------------------------+--------------+
39
- | `PEP 509 <https://www.python.org/dev/peps/pep-0509/ >`_ | Add a private version to dict | |
40
- +--------------------------------------------------------+--------------------------------------------------+--------------+
41
- | `PEP 523 <https://www.python.org/dev/peps/pep-0523/ >`_ | Adding a frame evaluation API to CPython | |
42
- +--------------------------------------------------------+--------------------------------------------------+--------------+
43
- | **Linux/Window Changes ** |
44
- +--------------------------------------------------------+--------------------------------------------------+--------------+
45
- | `PEP 524 <https://www.python.org/dev/peps/pep-0524/ >`_ | Make os.urandom() blocking on Linux | |
46
- | | (during system startup) | |
47
- +--------------------------------------------------------+--------------------------------------------------+--------------+
48
- | `PEP 528 <https://www.python.org/dev/peps/pep-0528/ >`_ | Change Windows console encoding to UTF-8 | |
49
- +--------------------------------------------------------+--------------------------------------------------+--------------+
50
- | `PEP 529 <https://www.python.org/dev/peps/pep-0529/ >`_ | Change Windows filesystem encoding to UTF-8 | |
51
- +--------------------------------------------------------+--------------------------------------------------+--------------+
8
+ .. table ::
9
+ :widths: 30 50 20
10
+
11
+ +-----------------------------------------------------------------------------------------------------------+-----------------+
12
+ | **New Syntax Features ** | **Status ** |
13
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
14
+ | `PEP 498 <https://www.python.org/dev/peps/pep-0498/ >`_ | Literal String Formatting | Complete |
15
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
16
+ | `PEP 515 <https://www.python.org/dev/peps/pep-0515/ >`_ | Underscores in Numeric Literals | Complete |
17
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
18
+ | `PEP 525 <https://www.python.org/dev/peps/pep-0525/ >`_ | Asynchronous Generators | |
19
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
20
+ | `PEP 526 <https://www.python.org/dev/peps/pep-0526/ >`_ | Syntax for Variable Annotations (provisional) | Complete |
21
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
22
+ | `PEP 530 <https://www.python.org/dev/peps/pep-0530/ >`_ | Asynchronous Comprehensions | |
23
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
24
+ | **New Built-in Features ** |
25
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
26
+ | `PEP 468 <https://www.python.org/dev/peps/pep-0468/ >`_ | Preserving the order of *kwargs * in a function | |
27
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
28
+ | `PEP 487 <https://www.python.org/dev/peps/pep-0487/ >`_ | Simpler customization of class creation | |
29
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
30
+ | `PEP 520 <https://www.python.org/dev/peps/pep-0520/ >`_ | Preserving Class Attribute Definition Order | |
31
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
32
+ | **Standard Library Changes ** |
33
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
34
+ | `PEP 495 <https://www.python.org/dev/peps/pep-0495/ >`_ | Local Time Disambiguation | |
35
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
36
+ | `PEP 506 <https://www.python.org/dev/peps/pep-0506/ >`_ | Adding A Secrets Module To The Standard Library | |
37
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
38
+ | `PEP 519 <https://www.python.org/dev/peps/pep-0519/ >`_ | Adding a file system path protocol | |
39
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
40
+ | **CPython Internals ** |
41
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
42
+ | `PEP 509 <https://www.python.org/dev/peps/pep-0509/ >`_ | Add a private version to dict | Won't do |
43
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
44
+ | `PEP 523 <https://www.python.org/dev/peps/pep-0523/ >`_ | Adding a frame evaluation API to CPython | |
45
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
46
+ | **Linux/Window Changes ** |
47
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
48
+ | `PEP 524 <https://www.python.org/dev/peps/pep-0524/ >`_ | Make ``os.urandom() `` blocking on Linux | |
49
+ | | (during system startup) | |
50
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
51
+ | `PEP 528 <https://www.python.org/dev/peps/pep-0528/ >`_ | Change Windows console encoding to UTF-8 | |
52
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
53
+ | `PEP 529 <https://www.python.org/dev/peps/pep-0529/ >`_ | Change Windows filesystem encoding to UTF-8 | |
54
+ +--------------------------------------------------------+--------------------------------------------------+-----------------+
52
55
53
56
Other Language Changes:
54
57
58
+ .. table ::
59
+ :widths: 90 10
60
+
55
61
+-------------------------------------------------------------------------------------------------------------+---------------+
56
62
| A *global * or *nonlocal * statement must now textually appear before the first use of the affected name in | |
57
63
| the same scope. Previously this was a SyntaxWarning. | |
@@ -71,14 +77,17 @@ Other Language Changes:
71
77
72
78
Changes to built-in modules:
73
79
80
+ .. table ::
81
+ :widths: 90 10
82
+
74
83
+--------------------------------------------------------------------------------------------------------------+----------------+
75
84
| `array <https://docs.python.org/3.6/whatsnew/3.6.html#array >`_ | |
76
85
+--------------------------------------------------------------------------------------------------------------+----------------+
77
86
| Exhausted iterators of *array.array * will now stay exhausted even if the iterated array is extended. | |
78
87
+--------------------------------------------------------------------------------------------------------------+----------------+
79
88
| `binascii <https://docs.python.org/3.6/whatsnew/3.6.html#binascii >`_ | |
80
89
+--------------------------------------------------------------------------------------------------------------+----------------+
81
- | The b2a_base64() function now accepts an optional newline keyword argument to control whether the newline | Completed |
90
+ | The b2a_base64() function now accepts an optional newline keyword argument to control whether the newline | Complete |
82
91
| character is appended to the return value | |
83
92
+--------------------------------------------------------------------------------------------------------------+----------------+
84
93
| `cmath <https://docs.python.org/3.6/whatsnew/3.6.html#cmath >`_ | |
@@ -121,7 +130,7 @@ Changes to built-in modules:
121
130
+--------------------------------------------------------------------------------------------------------------+----------------+
122
131
| `math <https://docs.python.org/3.6/whatsnew/3.6.html#math >`_ |
123
132
+--------------------------------------------------------------------------------------------------------------+----------------+
124
- | The new math.tau (τ) constant has been added | Completed |
133
+ | The new math.tau (τ) constant has been added | Complete |
125
134
+--------------------------------------------------------------------------------------------------------------+----------------+
126
135
| `os <https://docs.python.org/3.6/whatsnew/3.6.html#os >`_ |
127
136
+--------------------------------------------------------------------------------------------------------------+----------------+
@@ -136,7 +145,7 @@ Changes to built-in modules:
136
145
| `re <https://docs.python.org/3.6/whatsnew/3.6.html#re >`_ |
137
146
+--------------------------------------------------------------------------------------------------------------+----------------+
138
147
| Added support of modifier spans in regular expressions. Examples: *'(?i:p)ython' * matches 'python' and | |
139
- | 'Python', but not 'PYTHON'; *'(?i)g(?-i:v)r' * matches *'GvR' * and *'gvr' *, but not *'GVR' * . | |
148
+ | 'Python', but not 'PYTHON'; *'(?i)g(?-i:v)r' * matches *'GvR' * and *'gvr' *, but not *'GVR' *. | |
140
149
+--------------------------------------------------------------------------------------------------------------+----------------+
141
150
| Match object groups can be accessed by *__getitem__ *, which is equivalent to *group() *. So *mo['name'] * is | |
142
151
| now equivalent to *mo.group('name') *. | |
0 commit comments