Fred Drake <fdr...@acm.org> wrote:

> On Sat, Jul 10, 2010 at 11:56 PM, Senthil Kumaran <orsent...@gmail.com> wro=
> te:
> > I see the reason. But I doubt if this is a reliable approach. =A0Also
> > when the scheme begins with file:// it should not be confused with
> > ftp, so I think, that portion of code in urllib which work that way
> > should be removed.
> 
> I'm not trying to defend the current behavior of defaulting to FTP as
> a good thing; it's definitely surprising.  I am trying to rationalize
> it so I can be sure I understand why it might have been done to start
> with.
> 
> My own preference is to kick out any non-local references with an
> exception that can be detected (possibly derived from ValueError) so
> that applications that want rewrite (hopefully with user agreement!)
> can do so.  (Checking for non-local file: URLs on input might be
> better, of course.)

Sounds like a good plan to me, too.

Bill
_______________________________________________
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

Reply via email to