New submission from Fabio Menegazzo <[email protected]>:
compiler.compile fails on "if" statement in attached file.
When executing the code
compiler.compile(contents, '<string>', 'exec')
passing the attached file contents, the following error is raised:
ValueError: chr() arg not in range(256)
This won't fail when using the builtin "compile". Also removing the "if"
statement or any line before it, the contents are compiled successfully.
----------
files: small_with_error.py
messages: 154707
nosy: menegazzobr
priority: normal
severity: normal
status: open
title: compiler.compile fails on "if" statement in attached file
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file24699/small_with_error.py
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue14169>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com