Yury Selivanov added the comment: > I'm just curious if the 'ctx' is still needed: It looks like > the outermost "async def" dominates all further nested scopes > w.r.t the tokenizer mode, no matter whether they're "def" or > "async def" scopes.
This is a wonderful idea, that's the way it should be done in both tokenizer.c and tokenize.py. Please see the new patch. I love the simplicity of it, no more stacks or hard to follow code. ---------- resolution: fixed -> stage: resolved -> patch review status: closed -> open Added file: http://bugs.python.org/file39984/issue24619.3.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24619> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com