Re: [issue1285086] urllib.quote is too slow

2013-02-13 Thread Senthil Kumaran
Applying this patch - I tried this hypothetical test. $ ./python.exe -m timeit -s "import urllib.parse; x='a%20' * 10" "urllib.parse.unquote(x)" 10 loops, best of 3: 205 msec per loop Without the patch, the above test will run for minutes! This creates a significant difference for extremely

[issue1285086] urllib.quote is too slow

2013-02-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: I wrongly minutes. Here is actual data of execution speeds. There is magnitude of difference (almost 130x faster). Measured on macbook pro with 2 cores and 4 Gig mem. Before Patch: $ ./python.exe -m timeit -s "import urllib.parse; x='a%20' * 10" "urllib.

[issue17204] argparser's subparsers.add_parser() should accept an ArgumentParser

2013-02-13 Thread Chris Jerdonek
New submission from Chris Jerdonek: Currently, argparser's subparsers.add_parser() method (for adding sub-commands) takes the following input: "This object has a single method, add_parser(), which takes a command name and any ArgumentParser constructor arguments, and returns an ArgumentParser

<    1   2