Further to my previous question, I'd like to understand why python has
this seemingly strange behaviour.

<quote>
ActivePython 2.1, build 211 (ActiveState)
based on Python 2.1 (#15, Jun 18 2001, 21:42:28) [MSC 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.sep
'\\'
>>> os.getcwd()
'C:\\00Doc\\NT'
>>> os.sep='/'
>>> os.sep
'/'
>>> os.getcwd()
'C:\\00Doc\\NT'
</quote>

It seems to be counterintuitive that after setting os.sep to '/'
you still get the separator as '\\' when you called other os modules.

Cheers,
ST
--
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to