mirror of
https://github.com/python/cpython.git
synced 2025-08-09 11:29:45 +00:00
[3.12] gh-121657: Additional yield from
error test using lambda (GH-121722) (GH-121962)
(cherry picked from commit 1056f2bc20
)
Co-authored-by: Gregor <36135323+gege-hoho@users.noreply.github.com>
This commit is contained in:
parent
88618d2910
commit
2e8dba3e1d
1 changed files with 5 additions and 0 deletions
|
@ -2145,6 +2145,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…
Add table
Add a link
Reference in a new issue