[Python-Dev] posixpath.normpath

Moshe Zadka Moshe Zadka <moshez@math.huji.ac.il>
Wed, 19 Jul 2000 09:14:52 +0300 (IDT)


On Wed, 19 Jul 2000, Thomas Wouters wrote:

> On Tue, Jul 18, 2000 at 04:44:01PM +0300, Moshe Zadka wrote:
> 
> > a) posixpath.normpath("..") 
> 
> '..'.
> 
> > b) posixpath.normpath("/..")
> 
> '/'. I *think* this is POSIXly defined, but I'm not sure. However, this is
> the behaviour on all UNIX machines I've ever seen, and also in protocols
> like HTTP that take a URL with forward slashes and possibly '..'s.

OK. I've posted a patch which corrects posixpath.normpath and competes
with 100900. Now Skip gets to decide which of them he likes better...
--
Moshe Zadka <moshez@math.huji.ac.il>
There is no GOD but Python, and HTTP is its prophet.
http://advogato.org/person/moshez