Re: And the reverse? Does os also import os.path?

2008-03-27 Thread Gabriel Genellina
En Thu, 27 Mar 2008 14:22:11 -0300, Bruno Desthuilliers <[EMAIL PROTECTED]> escribió: > Wilbert Berendsen a écrit : >> If i do >> > import os > os.path.abspath("bla") >> '/home/wilbert/bla' >> >> it seems that just import os also makes available al os.path functions. >> >> But is that al

Re: And the reverse? Does os also import os.path?

2008-03-27 Thread Bruno Desthuilliers
Wilbert Berendsen a écrit : > If i do > import os os.path.abspath("bla") > '/home/wilbert/bla' > > it seems that just import os also makes available al os.path functions. > > But is that always true? Nope. Not all packages expose their sub-packages. -- http://mail.python.org/mailman

And the reverse? Does os also import os.path?

2008-03-27 Thread Wilbert Berendsen
If i do >>> import os >>> os.path.abspath("bla") '/home/wilbert/bla' >>> it seems that just import os also makes available al os.path functions. But is that always true? Thanks, Wilbert -- http://www.wilbertberendsen.nl/ "You must be the change you wish to see in the world." -- Mahatm