[issue13381] compile fails to compile a ast module object giving a incomprehensible error

Ronny Pfannschmidt report at bugs.python.org
Thu Nov 10 10:51:07 CET 2011


New submission from Ronny Pfannschmidt <ronny.pfannschmidt at gmail.com>:

$ python3.2  -c 'import ast;compile(ast.parse(open("testing/test_keymap.py").read()), "test", "exec")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: AST string must be of type str

note that just compiling the source works fine

----------
files: test_keymap.py
messages: 147401
nosy: Ronny.Pfannschmidt
priority: normal
severity: normal
status: open
title: compile fails to compile a ast module object giving a incomprehensible error
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file23652/test_keymap.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13381>
_______________________________________


More information about the Python-bugs-list mailing list