[issue10696] port not split in function urllib.parse.urlsplit

2010-12-13 Thread JTMoon79
New submission from JTMoon79 : urlsplit function from urllib.parse.urlsplit does not return the port field. Repro steps >>> import urllib >>> import urllib.parse >>> urllib.parse.urlsplit(r'http://foo.bar.com:80/blarg?a=1&b=2') RETURNS: SplitResult(sch

[issue10697] port not split in function urllib.parse.urlparse

2010-12-13 Thread JTMoon79
New submission from JTMoon79 : Copy of issue 10696 This issue is exactly the same as issue 10696 except it affects a different function, urllib.parse.urlparse (instead of urllib.parse.urlsplit). urlparse function from urllib.parse.urlparse does not return the port field. REPRO STEPS

[issue10696] port not split in function urllib.parse.urlsplit

2010-12-13 Thread JTMoon79
JTMoon79 added the comment: see comments at http://bugs.python.org/issue10697#msg123898 -- ___ Python tracker <http://bugs.python.org/issue10696> ___ ___ Pytho

[issue10697] host and port attributes not documented well in function urllib.parse.urlparse and urlsplit

2010-12-13 Thread JTMoon79
JTMoon79 added the comment: Doh! I feel a bit silly. I didn't notice 'hostname' and 'port' in >>> dir(urllib.parse.urlparse(r'http://foo.bar.com:80/blarg?a=1&b=2')) [... 'count', 'fragment', 'geturl', 'ho