Roundup Robot added the comment:
New changeset b5a7f529b4ac by Yury Selivanov in branch '3.5':
Issue #24687: Plug refleak on SyntaxError in function parameters annotations.
https://hg.python.org/cpython/rev/b5a7f529b4ac
New changeset cf91ae981afd by Yury Selivanov in branch 'default':
Merge 3.5
Yury Selivanov added the comment:
Thanks, Benjamin!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24687
___
___
Python-bugs-list mailing list
Changes by Yury Selivanov yseliva...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24687
___
Yury Selivanov added the comment:
I would prefer that compiler_visit_argannotation[s] be fixed to use the
normal calling convention.
Agree, new patch attached.
--
Added file: http://bugs.python.org/file39990/compile2.patch
___
Python tracker
Benjamin Peterson added the comment:
Seems fine to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24687
___
___
Python-bugs-list mailing
Benjamin Peterson added the comment:
I would prefer that compiler_visit_argannotation[s] be fixed to use the normal
calling convention.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24687
New submission from Yury Selivanov:
A simple way of reproducing the issue is to try to compile the following piece
of code with refleaks check mode on:
def foo(a:(yield)): pass
Since '(yield)' expression is outside of a function, it will trigger a
SyntaxError.
There is a subtle bug in