Author gvanrossum
Recipients BTaskaya, gvanrossum, lys.nikolaou
Date 2020-12-23.21:19:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608758399.74.0.699998617186.issue42725@roundup.psfhosted.org>
In-reply-to
Content
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.)
History
Date User Action Args
2020-12-23 21:19:59gvanrossumsetrecipients: + gvanrossum, lys.nikolaou, BTaskaya
2020-12-23 21:19:59gvanrossumsetmessageid: <1608758399.74.0.699998617186.issue42725@roundup.psfhosted.org>
2020-12-23 21:19:59gvanrossumlinkissue42725 messages
2020-12-23 21:19:59gvanrossumcreate