File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -684,6 +684,8 @@ can be used to create instance variables with different implementation details.
684
684
:pep: `3129 ` - Class Decorators
685
685
686
686
687
+ .. _async :
688
+
687
689
Coroutines
688
690
==========
689
691
Original file line number Diff line number Diff line change @@ -1157,6 +1157,16 @@ Changes in Python behavior
1157
1157
exceptions.
1158
1158
(Contributed by Yury Selivanov in :issue: `32670 `.)
1159
1159
1160
+ * :pep: `492 ` is fully implemented in Python 3.7, meaning that the old
1161
+ :meth: `__aiter__ ` protocol is no longer supported: a
1162
+
6F2F
:exc: `RuntimeError ` will be raised if :meth: `__aiter__ ` returns anything
1163
+ but an asynchronous iterator.
1164
+
1165
+ Since Python 3.7, :keyword: `async ` and :keyword: `await ` names are proper
1166
+ keywords. If you use them for variable names, you need to rename them in
1167
+ order to make the code work on Python 3.7. Trying to use a keyword as
1168
+ a variable name will raise a :exc: `SyntaxError `.
1169
+
1160
1170
* Due to an oversight, earlier Python versions erroneously accepted the
1161
1171
following syntax::
1162
1172
You can’t perform that action at this time.
0 commit comments