Re: Duplicating Modules

2005-09-30 Thread kimes
Why don't you do like this..

import module
import mudule as module2

-- 
http://mail.python.org/mailman/listinfo/python-list


I just wanna know about os.path module..

2005-07-17 Thread kimes
I've just started digging into how python works..
I found that other mudules are clearly declared like one file per a
module..

But the only os.path doesn't have their own file..
ye I know is has actually depending on os like in my case posixpath..

What I'd love to know is..
when I call import os.path..
how happened under the hood?

I'm currently using python 2.4 in linux machine..
I'd appreciate it

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: I just wanna know about os.path module..

2005-07-17 Thread kimes
Thanks for all you  guys help..

But Peter,
You said 'At first os - module, or package, it doesn't matter here - is
imported.'

I'm still confused about that..
When I just call import os.path without calling import os..
In that case, you mean 'import os' is called implicitly?
Why? and How?

how python knows it should call import when we call import os?
Please make me clear.. :)
Thanks..

-- 
http://mail.python.org/mailman/listinfo/python-list