Triple quoted string in exec function ?
rtw at freenet.co.uk
Tue Dec 30 22:35:28 CET 2008
Stef Mientki wrote in news:mailman.6399.1230668197.3487.python-
list at python.org in comp.lang.python:
>>> And, by the way, exec is a *statement*, not a function!
> exec ( Init_Code, PG.P_Globals )
> I've really doubt that this is a statement,
> unless I don't understand what a statement is.
In python 2.x the above is a statement that is passed a tuple:
its a statement like print is:
>>> print ( 1,2 )
In 3.x it is a function:
print is also a function in python 3.x, so:
>>> print(1, 2)
More information about the Python-list