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
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.
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
101 - 103 of 103 matches
Mail list logo