os.sep and os.path.sep

B

billiejoex

import osTrue

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

O.R.Senthil Kumaran

* billiejoex said:
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.

If you lookup os module, not only os.sep but couple of other values are also imported from os.path.

from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep,
devnull)

Yes, you are right. There are no differences. They exists there for utility purposes. Removing them would be a bad idea.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top