os.sep and os.path.sep

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sun Sep 9 17:17:42 EDT 2007


En Sun, 09 Sep 2007 12:48:38 -0300, billiejoex <gnewsg at gmail.com> escribi�:

>>>> import os
>>>> hasattr(os, 'sep')
> True
>>>> hasattr(os.path, 'sep')
> True
>
> By chance I noticed it.
> Are there differences (I think not...)?
> IMHO, if there are no differences os.path.sep should be removed since
> it may be confusing.

They are the same, as documented on  
http://docs.python.org/lib/os-path.html#l2h-2796
And why do you think os.path.sep would be confusing?

-- 
Gabriel Genellina




More information about the Python-list mailing list