[New-bugs-announce] [issue32445] Skip creating redundant wrapper functions in ExitStack.callback
Nick Coghlan
report at bugs.python.org
Fri Dec 29 08:37:44 EST 2017
New submission from Nick Coghlan <ncoghlan at gmail.com>:
While discussing https://bugs.python.org/issue32145, I noticed that ExitStack.callback *always* adds a wrapper function, even when the `args` and `kwds` parameters are both empty.
For plain callbacks that aren't receiving any extra arguments, it would be better to skip adding the redundant wrapper function.
----------
messages: 309171
nosy: barry, ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Skip creating redundant wrapper functions in ExitStack.callback
type: performance
versions: Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32445>
_______________________________________
More information about the New-bugs-announce
mailing list