"Robert" <webtour...@gmail.com> wrote
in shell, my current directory is "/tmp",
are line#3 and #4 --- http://paste.pocoo.org/show/166268/ -
"equivalent" --- i.e. yielding the same result ?

No need to use pastebin when its only 2 lines!

Since -m runs a module as a script I think the answer is yes. Where they would be different is if you were not in the same folder as the module. Then the -m option would search the PYTHONPATH whereas without -m I think it would not search for the module, you would need to specify the location.

I think...

--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to