Skip to content

Instantly share code, notes, and snippets.

@anb
Created September 15, 2011 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anb/1218761 to your computer and use it in GitHub Desktop.
Save anb/1218761 to your computer and use it in GitHub Desktop.
Baqueslachère
Python 2.6.7 (r267:88850, Sep 13 2011, 16:31:26)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exec "print 'toto'"
toto
>>> exec "print 'toto'\r\n"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1
print 'toto'
^
SyntaxError: invalid syntax
>>>
anb:~/manny/manny_web/manny$python2.7
Python 2.7.2 (default, Sep 13 2011, 16:35:02)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exec "print 'toto'"
toto
>>> exec "print 'toto'\r\n"
toto
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment