help with exec statement
Erik Max Francis
max at alcyone.com
Fri Jan 3 02:11:00 EST 2003
More information about the Python-list mailing list
Fri Jan 3 02:11:00 EST 2003
- Previous message (by thread): PEP 303: Extend divmod() for Multiple Divisors
- Next message (by thread): help with exec statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): PEP 303: Extend divmod() for Multiple Divisors
- Next message (by thread): help with exec statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list