On Wed, 01 Sep 2010 23:57:21 -0700, swapnil wrote:
> I could not find any documentation for variables os.path.sep and
> os.path.altsep. Although the first is pretty straightforward can
> anyone explain the purpose of the second variable? Is it even useful?
The purpose is so that you can do e.g.:
if c == os.path.sep or c == os.path.altsep:
...
On Windows, both '\' and '/' are directory separators; you shouldn't rely
upon a particular one being used, but should check for either.
--
http://mail.python.org/mailman/listinfo/python-list