On 3/31/2011 11:07 AM Prasad, Ramit said...
Hi everyone,
I was wondering if there is a difference in
import os
os.path.join(string1,string2)
AND
import os.path
os.path.join(string1,string2)
A quick test shows they're the same:
ActivePython 2.6.6.15 (ActiveState Software Inc.) based on
Python 2.6.6 (r266:84292, Aug 24 2010, 16:01:11) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os as os1
>>> import os.path
>>> os1.path is os.path
True
>>>
Although I'm not sure what to make of the joins What are you trying to do?
Emile
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor