Strange "feature" involving double slashes in Win98
Carlos Ribeiro
carribeiro at gmail.com
Tue Sep 14 17:16:50 EDT 2004
On Tue, 14 Sep 2004 16:43:46 -0400, Peter Hansen <peter at engcorp.com> wrote:
> Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on
> win32
> (...)
> >>> os.path.abspath('c://somepath')
> 'c:\\somepath'
Strange. I've tried it here with different results.
ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on win32
>>> import os.path
>>> os.path.abspath('c://work')
'c:\\\\work'
Of course, I'm not using the same build as you. Either there was some
bugfix inbetween 2.3.2 and 2.3.4, or the underlying libraries used by
ActivePython and standard Python differ in this regard (not highly
probable, anyway). I'm not sure.
--
Carlos Ribeiro
Consultoria em Projetos
blog: http://rascunhosrotos.blogspot.com
blog: http://pythonnotes.blogspot.com
mail: carribeiro at gmail.com
mail: carribeiro at yahoo.com
More information about the Python-list
mailing list