Message383662
If we simply ignored yield in the annotation, wouldn't we have the problem that
def f(a: (yield)): pass
silently changes from being a generator (in 3.9) to not being a generator (in 3.10)? That would be bad. I'd rather make this an error still. (But for nonlocals, not processing sounds fine.) |
|
Date |
User |
Action |
Args |
2020-12-23 21:19:59 | gvanrossum | set | recipients:
+ gvanrossum, lys.nikolaou, BTaskaya |
2020-12-23 21:19:59 | gvanrossum | set | messageid: <1608758399.74.0.699998617186.issue42725@roundup.psfhosted.org> |
2020-12-23 21:19:59 | gvanrossum | link | issue42725 messages |
2020-12-23 21:19:59 | gvanrossum | create | |
|