mirror of https://github.com/python/cpython
[3.13] gh-121657: Additional `yield from` error test using lambda (GH-121722) (GH-121961)
(cherry picked from commit 1056f2bc20
)
Co-authored-by: Gregor <36135323+gege-hoho@users.noreply.github.com>
This commit is contained in:
parent
2c4a60b9b9
commit
58a84e58f4
|
@ -2247,6 +2247,11 @@ Traceback (most recent call last):
|
|||
...
|
||||
SyntaxError: 'yield' outside function
|
||||
|
||||
>>> f=lambda: (yield from (1,2)), (yield from (3,4))
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
SyntaxError: 'yield from' outside function
|
||||
|
||||
>>> yield from [1,2]
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue