[docs] [issue10226] urlparse example is wrong

Alexander Belopolsky report at bugs.python.org
Fri Oct 29 07:51:26 CEST 2010

Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

Looks like I've been beaten again by make doctest picking up older python, but something is not right here:

In Python 2.6.5:

>>> urlparse('www.cwi.nl:80/%7Eguido/Python.html')
ParseResult(scheme='www.cwi.nl', netloc='', path='80/%7Eguido/Python.html', params='', query='', fragment='')

but in 2.7:

>>> urlparse('www.cwi.nl:80/%7Eguido/Python.html')
ParseResult(scheme='', netloc='', path='www.cwi.nl:80/%7Eguido/Python.html', params='', query='', fragment='')

and the text preceding the example in the doc does not really tell which is right.


Python tracker <report at bugs.python.org>

More information about the docs mailing list