help with exec statement
Erik Max Francis
max at alcyone.com
Fri Jan 3 02:11:00 EST 2003
Jason Morgan wrote:
> This is the contents of the string:
>
> def generate():
> return "TEST"
It would be important to see the precise contents of the string, via
repr.
> And, finally, this is my error:
>
> File "<string>", line 2
>
> return "TEST"
>
> ^
>
> SyntaxError: invalid syntax
It is probably either an intending problem, or the lack of a trailing
newline.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ We grow in time to trust the future for our answers.
\__/ Ruth Benedict
Physics reference / http://www.alcyone.com/max/reference/physics/
A physics reference.
More information about the Python-list
mailing list