[New-bugs-announce] [issue14169] compiler.compile fails on "if" statement in attached file

Fabio Menegazzo report at bugs.python.org
Thu Mar 1 19:03:05 CET 2012


New submission from Fabio Menegazzo <menegazzo at esss.com.br>:

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 <report at bugs.python.org>
<http://bugs.python.org/issue14169>
_______________________________________


More information about the New-bugs-announce mailing list