Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15ffcf7 commit c5dafeaCopy full SHA for c5dafea
Lib/test/test_generators.py
@@ -2097,11 +2097,10 @@ def printsolution(self, x):
2097
...
2098
SyntaxError: 'yield' outside function
2099
2100
-# Pegen does not produce this error message yet
2101
-# >>> def f(): x = yield = y
2102
-# Traceback (most recent call last):
2103
-# ...
2104
-# SyntaxError: assignment to yield expression not possible
+>>> def f(): x = yield = y
+Traceback (most recent call last):
+ ...
+SyntaxError: assignment to yield expression not possible
2105
2106
>>> def f(): (yield bar) = y
2107
Traceback (most recent call last):
0 commit comments