compiler module bug?

Gabriel Genellina gagsl-py2 at
Sun Oct 21 19:15:18 CEST 2007

En Sun, 21 Oct 2007 13:36:46 -0300, Brian Blais <bblais at>  

> I am experiencing a problem with the compiler module.  Is this a bug,
> or am I doing something wrong?

I think it's a well-known fact...

> it seems like a comment at the end breaks the parse command, but not
> parseFile.  Is this reproducible by others?

The comment itself is not a problem; but the last line in the source must  
end in a newline.
See the py_compile/compileall modules as an example.

Gabriel Genellina

More information about the Python-list mailing list