This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: compile fails to compile a ast module object giving a incomprehensible error
Type: behavior Stage:
Components: Versions: Python 3.2
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: Ronny.Pfannschmidt, benjamin.peterson
Priority: normal Keywords:

Created on 2011-11-10 09:51 by Ronny.Pfannschmidt, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_keymap.py Ronny.Pfannschmidt, 2011-11-10 09:51
Messages (2)
msg147401 - (view) Author: Ronny Pfannschmidt (Ronny.Pfannschmidt) Date: 2011-11-10 09:51
$ 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
msg147402 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2011-11-10 12:57
Fixed recently.
History
Date User Action Args
2022-04-11 14:57:23adminsetgithub: 57590
2011-11-10 12:57:53benjamin.petersonsetstatus: open -> closed
resolution: out of date
messages: + msg147402
2011-11-10 11:10:44Ronny.Pfannschmidtsetnosy: + benjamin.peterson
2011-11-10 09:51:07Ronny.Pfannschmidtcreate