| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
This coming from #125917. Red alert: to make AC happy, docstring was adjusted. I did some benchmarks. Details# a.py
import pyperf
from functools import reduce
f = lambda x, y: x + y
lst = list(range(5))
init = 123
runner = pyperf.Runner()
runner.bench_func('reduce(f, lst)', reduce, f, lst)
runner.bench_func('reduce(f, lst, init)', reduce, f, lst, init)Run e.g. with: python a.py -q -o ref.json. with results:
So, at least AC-backed argument processing offer some speedup. |
Sorry, something went wrong.
|
Thanks Sergey, I'll review this within today. Ping me tomorrow if I forget. |
Sorry, something went wrong.
PEP 257 says that "Multi-line docstrings consist of a summary line just like a one-line docstring, followed by a blank line, followed by a more elaborate description." This is also a requirement from the Argument Clinic.
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Yak-shave in preparation for Argument Clinic adaption in pythongh-125999. (cherry picked from commit 9b14083) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Yak-shave in preparation for Argument Clinic adaption in pythongh-125999. (cherry picked from commit 9b14083) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
I'll give Jelle and Serhiy a chance to chime in again before landing this. |
Sorry, something went wrong.
|
I plan to land this later today (post noon ET). |
Sorry, something went wrong.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
Thanks for the PR, Sergey; thanks for the reviews, Jelle and Serhiy. |
Sorry, something went wrong.
Yak-shave in preparation for Argument Clinic adaption in pythongh-125999.
Yak-shave in preparation for Argument Clinic adaption in pythongh-125999.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.