Message31890
Hello everybody!
>>> os.path.normpath('/etc/passwd')
'/etc/passwd'
I don't know any environment at all where
a) '/etc/passwd/'
b) '/etc/passwd'
are treated the same. It clearly does not apply for the path part of http urls (this is left as an exercise for the reader).
But it also does not apply for (e.g.) Linux either:
an open() on path a) return ENOTDIR while it succeeds with b).
(assuming /etc/passwd is a file)
This is definitively not a documentation bug, as "normpath" should normalize a path and not fuck it up.
Robert |
|
Date |
User |
Action |
Args |
2007-08-23 14:53:26 | admin | link | issue1707768 messages |
2007-08-23 14:53:26 | admin | create | |
|