Oleg Broytmann <[EMAIL PROTECTED]> wrote:
> On Wed, Nov 01, 2006 at 08:03:55AM -0600, Michael Urman wrote:
> > >        p = os.path.normpath( os.path.join( __file__, "../..", "lib" ) )
> > 
> > Shouldn't an example avoid using the path separator directly within a
> > string literal?
> > 
> >     p = path.normpath(path.join(__file__, "..", "..", "lib"))
> 
>    It also should use platform-independent constants:
> 
> p = path.normpath(path.join(__file__, os.pardir, os.pardir, "lib"))

What operating systems that Python currently supports doesn't have ".."
mean "parent directory"?  And/or What systems currently in development
don't have ".." meaning "parent directory"?  Are they significant enough
for us to care?


 - Josiah

_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to