os.sep and os.path.sep

billiejoex gnewsg at gmail.com
Sun Sep 9 11:48:38 EDT 2007


>>> 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.




More information about the Python-list mailing list