Author gvanrossum
Recipients BTaskaya, gvanrossum, lys.nikolaou
Date 2020-12-23.21:19:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:59gvanrossumsetrecipients: + gvanrossum, lys.nikolaou, BTaskaya
2020-12-23 21:19:59gvanrossumsetmessageid: <>
2020-12-23 21:19:59gvanrossumlinkissue42725 messages
2020-12-23 21:19:59gvanrossumcreate