This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author BTaskaya
Recipients BTaskaya, gvanrossum
Date 2020-12-23.13:28:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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


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).
Date User Action Args
2020-12-23 13:28:51BTaskayasetrecipients: + BTaskaya, gvanrossum
2020-12-23 13:28:51BTaskayasetmessageid: <>
2020-12-23 13:28:51BTaskayalinkissue42725 messages
2020-12-23 13:28:50BTaskayacreate