Steve Holden wrote: >> Ah, but how do you know when that's wrong? At least under ftp:// your >> root is often a mid-level directory until you change up out of it. >> http:// will tend to treat the targets as roots, but I don't know that >> there's any requirement for a /.. to be meaningless (even if it often >> is). >> > I'm darned if I know. I simply know that it isn't right for http resources.
the URI specification disagrees; an URI that starts with "../" is per- fectly legal, and the specification explicitly states how it should be interpreted. (it's important to realize that "urijoin" produces equivalent URI:s, not file names) </F> _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com