[issue39215] Type Annotation of nested function with positional only arguments triggers SystemError
Anthony Sottile
report at bugs.python.org
Sat Jan 4 19:30:24 EST 2020
New submission from Anthony Sottile <asottile at umich.edu>:
def f():
def g(arg: int, /):
pass
f()
$ python3.9 t2.py
Traceback (most recent call last):
File "/home/asottile/workspace/t2.py", line 5, in <module>
f()
File "/home/asottile/workspace/t2.py", line 2, in f
def g(arg: int, /):
SystemError: no locals when loading 'int'
Originally from this StackOverflow post: https://stackoverflow.com/q/59594494/812183
----------
components: Interpreter Core
messages: 359312
nosy: Anthony Sottile
priority: normal
severity: normal
status: open
title: Type Annotation of nested function with positional only arguments triggers SystemError
versions: Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39215>
_______________________________________
More information about the Python-bugs-list
mailing list