[issue23416] Make urllib.parse.SplitResult etc arguments optional

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that it would be nice to have. But this feature has a cost. $ ./python -m timeit -s 'from urllib.parse import ParseResult' -- "ParseResult('http', 'u...@example.com:p...@www.python.org:080', '/doc/', '', 'query=yes', 'frag')" Unpatched: 1.61 usec per

[issue23416] Make urllib.parse.SplitResult etc arguments optional

2015-02-09 Thread Martin Panter
Martin Panter added the comment: Adding a patch implementing my suggested enhancement -- keywords: +patch versions: +Python 3.5 Added file: http://bugs.python.org/file38076/split-result-default.patch ___ Python tracker

[issue23416] Make urllib.parse.SplitResult etc arguments optional

2015-02-08 Thread Martin Panter
New submission from Martin Panter: This would be a simple API enhancement and would allow easier building of URLs, like >>> SplitResult("rtp", address, query=urlencode(query)).geturl() "rtp://localhost:5004?rtcpport=5005" It seems the best way to do this at the moment is annoyingly verbose: S