You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parser module doesn't understand function annotations. #53400
Python 3.2a0 (py3k:82529M, Jul 4 2010, 17:35:10)
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import parser
[38213 refs]
>>> parser.sequence2st(parser.suite("def f(a:int) -> int: pass").totuple())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
parser.ParserError: VALIDATION FAILURE: report this to the maintainer!
[38264 refs]
The extra space in Grammar was already removed in r82624.
The remaining part of the patch looks good to me.
The lambda thing is not important, if you get an error when trying to compile the resulting st.
Activity
mdickinson commentedon Jul 4, 2010
mdickinson commentedon Jul 6, 2010
Patch fixing validation of function annotations and keyword-only arguments.
There's still the issue of false positives: annotations on lambda arguments should raise an exception, but don't.
amauryfa commentedon Jul 22, 2010
The extra space in Grammar was already removed in r82624.
The remaining part of the patch looks good to me.
The lambda thing is not important, if you get an error when trying to compile the resulting st.
python-dev commentedon Apr 29, 2012
New changeset 9f57d66689ca by Mark Dickinson in branch '3.2':
Issue bpo-9154: Fix parser module to understand function annotations.
http://hg.python.org/cpython/rev/9f57d66689ca
New changeset cee5cb877631 by Mark Dickinson in branch 'default':
Issue bpo-9154: Merge fix from 3.2.
http://hg.python.org/cpython/rev/cee5cb877631