On Fri, 6 Jun 2014, Thomas Liske wrote: > > Hi Cristian, Thomas,
> On python3: > > $ python3 > Python 3.3.5 (default, Mar 22 2014, 13:24:53) > [GCC 4.8.2] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import sys > >>> put sys.path > File "<stdin>", line 1 > put sys.path > ^ > SyntaxError: invalid syntax Isn't that happening because syntax changed frm 2.x to 3.x? 'print(sys.path)' works with both, though: Python 2.7.7 (default, Jun 3 2014, 16:16:56) [GCC 4.8.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print(sys.path) ['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/pymodules/python2.7/HTMLgen', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode'] Python 3.4.1 (default, Jun 5 2014, 10:25:52) [GCC 4.8.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print(sys.path) ['', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/usr/lib/python3.4/lib-dynload', '/usr/local/lib/python3.4/dist-packages', '/usr/lib/python3/dist-packages'] Cheers, -- Cristian -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

