Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-10 Thread Senthil Kumaran
On Mon, May 10, 2010 at 05:56:29PM +0900, Stephen J. Turnbull wrote: > Senthil Kumaran writes: > > > I should have said, 'treatment of urls with authority' and 'treatment > > of urls without authority' in terms of parsing and joining is as per > > RFC. How it is doing practically is by maintai

Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-10 Thread Stephen J. Turnbull
Senthil Kumaran writes: > I should have said, 'treatment of urls with authority' and 'treatment > of urls without authority' in terms of parsing and joining is as per > RFC. How it is doing practically is by maintaining a list of urls > with known scheme names which use_netloc. Why do that i

Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-10 Thread Senthil Kumaran
On Mon, May 10, 2010 at 05:11:12PM +0900, Stephen J. Turnbull wrote: > > Not all urls have the 'authority' component after the scheme. (sip > > based urls for e.g) urlparse differentiates those by maintaining a > > list of scheme names which will follow the pattern of parsing, and > > joining f

Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-10 Thread Stephen J. Turnbull
Senthil Kumaran writes: > Not all urls have the 'authority' component after the scheme. (sip > based urls for e.g) urlparse differentiates those by maintaining a > list of scheme names which will follow the pattern of parsing, and > joining for the urls which have a netloc (or authority compo

Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-09 Thread Stephen J. Turnbull
David Abrahams writes: > At Sat, 08 May 2010 11:04:47 -0500, > John Arbash Meinel wrote: > > Don't you need to register the "git+file:///" url for urlparse to > > properly split it? > > Yes. But the question is whether urlparse should really be so fragile > that every hierarchical scheme

Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-09 Thread Senthil Kumaran
On Sun, May 09, 2010 at 03:19:40PM -0600, David Abrahams wrote: > John Arbash Meinel wrote: > > Don't you need to register the "git+file:///" url for urlparse to > > properly split it? > > Yes. But the question is whether urlparse should really be so fragile > that every hierarchical scheme needs

Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-09 Thread Jon Ribbens
On Sun, May 09, 2010 at 03:19:40PM -0600, David Abrahams wrote: > Yes. But the question is whether urlparse should really be so fragile > that every hierarchical scheme needs to be explicitly registered. > Surely ending with “+file” should be sufficient to have it recognized > as a file-based sche

Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-09 Thread David Abrahams
At Sat, 08 May 2010 11:04:47 -0500, John Arbash Meinel wrote: > > Stephen J. Turnbull wrote: > > David Abrahams writes: > > > > > > This is a bug report. bugs.python.org seems to be down. > > > > > > >>> from urlparse import * > > > >>> urlunsplit(urlsplit('git+file:///foo/bar/baz')) >

Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-09 Thread Stephen J. Turnbull
John Arbash Meinel writes: > Stephen J. Turnbull wrote: > > David Abrahams writes: > > > > > > This is a bug report. bugs.python.org seems to be down. > > > > > > >>> from urlparse import * > > > >>> urlunsplit(urlsplit('git+file:///foo/bar/baz')) > > > git+file:/foo/bar/baz

Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-08 Thread John Arbash Meinel
Stephen J. Turnbull wrote: > David Abrahams writes: > > > > This is a bug report. bugs.python.org seems to be down. > > > > >>> from urlparse import * > > >>> urlunsplit(urlsplit('git+file:///foo/bar/baz')) > > git+file:/foo/bar/baz > > > > Note the dropped slashes after the colon

[Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-08 Thread Stephen J. Turnbull
David Abrahams writes: > > This is a bug report. bugs.python.org seems to be down. > > >>> from urlparse import * > >>> urlunsplit(urlsplit('git+file:///foo/bar/baz')) > git+file:/foo/bar/baz > > Note the dropped slashes after the colon. That's clearly wrong, but what does "+" ha

Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-07 Thread David Borowitz
On Fri, May 7, 2010 at 21:04, Senthil Kumaran wrote: > On Sat, May 8, 2010 at 8:19 AM, David Abrahams wrote: > > > > This is a bug report. bugs.python.org seems to be down. > > Tracked here: http://bugs.python.org/issue8656 > > > >>> urlunsplit(urlsplit('git+file:///foo/bar/baz')) > > Is 'git+

Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-07 Thread Senthil Kumaran
On Sat, May 8, 2010 at 8:19 AM, David Abrahams wrote: > > This is a bug report.  bugs.python.org seems to be down. Tracked here: http://bugs.python.org/issue8656 >  >>> urlunsplit(urlsplit('git+file:///foo/bar/baz')) Is 'git+file' a valid protocol? Or was it just your example? I don't see any r

[Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-07 Thread David Abrahams
This is a bug report. bugs.python.org seems to be down. >>> from urlparse import * >>> urlunsplit(urlsplit('git+file:///foo/bar/baz')) git+file:/foo/bar/baz Note the dropped slashes after the colon. -- Dave Abrahams Meet me at BoostCon: http://www.boostcon.com BoostPro Computi