bug in builtin compile function?

Erik Max Francis max at alcyone.com
Sun Oct 14 21:49:22 CEST 2001


Michael McCandless wrote:

> I told compile that the file was "foo.py", so, why doesn't it say that
> in the SyntaxError instead of saying <string>?

Because the parse error was in the string you passed it on, not in
foo.py.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ It is not enough to succeed; others must fail.
\__/ Gore Vidal
    Product's Quake III Arena Tips / http://www.bosskey.net/
 Tips and tricks from the absolute beginner to the Arena Master.



More information about the Python-list mailing list