Re: import os

2014-11-16 Thread Dave Angel
Abdul Abdul Wrote in message: > Thanks for your reply. Yes, I came across this page, but didn't understand > what is meant by the operating system dependent functionality. What does that > mean? Is importing that module that serious? > > Please don't top-post here. Add your comments after some

Re: import os

2014-11-16 Thread Chris Angelico
On Mon, Nov 17, 2014 at 12:10 PM, Abdul Abdul wrote: > Thanks for your reply. Yes, I came across this page, but didn't understand > what is meant by the operating system dependent functionality. What does > that mean? Is importing that module that serious? It's not "serious" as in "using this mod

Re: import os

2014-11-16 Thread Dan Stromberg
On Sun, Nov 16, 2014 at 5:10 PM, Abdul Abdul wrote: > Thanks for your reply. Yes, I came across this page, but didn't understand > what is meant by the operating system dependent functionality. What does > that mean? Is importing that module that serious? The os module has mostly lower level OS i

Re: import os

2014-11-16 Thread Abdul Abdul
Thanks for your reply. Yes, I came across this page, but didn't understand what is meant by the operating system dependent functionality. What does that mean? Is importing that module that serious? Thanks. On Sun, Nov 16, 2014 at 11:02 PM, Chris Angelico wrote: > On Mon, Nov 17, 2014 at 8:56 AM

Re: import os

2014-11-16 Thread Chris Angelico
On Mon, Nov 17, 2014 at 8:56 AM, Abdul Abdul wrote: > I tried to refer to Python documentation for what "os" refers to, but, the > explanation was not clear. If it's something you import, what you want is the module of that name. Searching the web for 'python os module' should bring you straight

Re: import os or import os.path

2011-09-06 Thread Joe Riopel
On Tue, Sep 6, 2011 at 5:25 PM, Jabba Laci wrote: > Hi, > > If I want to use the 'os.path' module, it's enought to import 'os': > > import os > if os.path.isfile('/usr/bin/bash'): >    print 'got it' > > In other source codes I noticed that people write 'import os.path' in > this case. Which is be

Re: import os or import os.path

2011-09-06 Thread Mark Hammond
On 7/09/2011 7:47 AM, Ian Kelly wrote: On Tue, Sep 6, 2011 at 3:25 PM, Jabba Laci wrote: Hi, If I want to use the 'os.path' module, it's enought to import 'os': import os if os.path.isfile('/usr/bin/bash'): print 'got it' In other source codes I noticed that people write 'import os.path'

Re: import os or import os.path

2011-09-06 Thread Ian Kelly
On Tue, Sep 6, 2011 at 3:25 PM, Jabba Laci wrote: > Hi, > > If I want to use the 'os.path' module, it's enought to import 'os': > > import os > if os.path.isfile('/usr/bin/bash'): >    print 'got it' > > In other source codes I noticed that people write 'import os.path' in > this case. Which is be