Recent i was learning pathnames manipulation in python, having a basic understanding of modules the following statements confused me
os
and os.path
are both modules :( how is this possible
Then i looked at os.py source code and found the following enlightening line of code
57. import posixpath as path
My question are
Why should i use os.path.join('bin','utils')
instead of posixpath.join('bin','utils')
?
What is the simples possible way to exlain x
and x.y
as both modules and when should i apply this technique?