Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12877 > unrolled thread

Re: import os or import os.path

Started byDennis Lee Bieber <wlfraed@ix.netcom.com>
First post2011-09-06 23:35 -0700
Last post2011-09-06 23:35 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: import os or import os.path Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-09-06 23:35 -0700

#12877 — Re: import os or import os.path

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2011-09-06 23:35 -0700
SubjectRe: import os or import os.path
Message-ID<mailman.821.1315377359.27778.python-list@python.org>
On Wed, 07 Sep 2011 11:11:55 +1000, Mark Hammond
<skippy.hammond@gmail.com> declaimed the following in
gmane.comp.python.general:

> 
> That's probably a matter of opinion - eg, 
> http://docs.python.org/tutorial/interpreter.html has an example of 
> importing the os module then accessing os.path.
> 
> Personally I think directly importing os.path is a waste of precious 
> keystrokes ;)
>
	Ah, but 

import os.path as op

supports a lot of later keystroke saving...

	op.join(...)
vs
	os.path.join(...)
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web