[Python-Dev] Can ftp url start with file:// ?
Steven D'Aprano
steve at pearwood.info
Mon Jul 12 01:37:16 CEST 2010
On Mon, 12 Jul 2010 12:01:07 am Steve Holden wrote:
> My own inclination would be to regard the current treatment of file:
> as a bug (albeit one not worth fixing on 2.x).
...
> Presumably a
> hostname in such a URI would require that some host-specific protocol
> be used (but this should be an access protocol like SMB or NFS, not a
> transfer protocol like FTP).
KDE uses SMB for non-local hostnames in file URIs.
> It seems pretty clear that randomly interpreting particular host
> names to imply a specific remote-access protocol like FTP is bogus.
Agreed. The right behaviour is to raise an exception and let the caller
deal with it, or provide a means to register an alternative.
--
Steven D'Aprano
More information about the Python-Dev
mailing list