On Fri, 9 Jul 2010 01:52:32 pm Senthil Kumaran wrote: > Strictly not a Python question, but I wanted to know from the > experience of others in this list. > > Is this is valid ftp url? > > # file://ftp.example.com/blah.txt (an ftp URL) > > My answer is no. When we have the scheme specifically mentioned as > file:// it is no point in considering it as ftp url (which should > start with ftp://).
I agree. Just because the host is *called* ftp doesn't mean you should use the ftp protocol to get the file. http://en.wikipedia.org/wiki/File_URI_scheme > If I go ahead with this assumption and fix a bug in stdlib, I am > introducing a regression because at the moment the above is > considered a ftp url. Do you have a url for the bug report? -- Steven D'Aprano _______________________________________________ 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