Author BTaskaya
Recipients BTaskaya, gvanrossum
Date 2020-12-23.13:28:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608730131.08.0.595189962302.issue42725@roundup.psfhosted.org>
In-reply-to
Content
Since the annotations are processed just like all other expressions in the symbol table, the generated entries for functions etc. This would result with 

def foo():
    for number in range(5):
        foo: (yield number)
    return number

foo()

returning a generator / coroutine (depending on yield/yield from/await usage). Is this something we want to keep or maybe tweak the symbol table generator to not to handle annotations (since there are also more subtle issues regarding analysis of cell / free vars).
History
Date User Action Args
2020-12-23 13:28:51BTaskayasetrecipients: + BTaskaya, gvanrossum
2020-12-23 13:28:51BTaskayasetmessageid: <1608730131.08.0.595189962302.issue42725@roundup.psfhosted.org>
2020-12-23 13:28:51BTaskayalinkissue42725 messages
2020-12-23 13:28:50BTaskayacreate