[Python-Dev] 'compile' error message
Oleg Broytmann
Oleg Broytmann <phd@phd.pp.ru>
Wed, 5 Jun 2002 18:48:14 +0400
On Wed, Jun 05, 2002 at 04:25:35PM +0200, Thomas Heller wrote:
> Python 2.3a0 (#29, Jun 5 2002, 13:09:10) [MSC 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> compile("1+*3", "myfile.py", "exec")
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "<string>", line 1
> 1+*3
> ^
> SyntaxError: invalid syntax
> >>>
>
> Shouldn't it print "myfile.py" instead of "<string>"?
I think it shoud. Just yesterday I stuck on this bug. Pleas file a bug
report.
PS. Tomorrow I'll publish the code that uses "compile", whatch c.l.py :)
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.