This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients barry, ncoghlan
Date 2017-12-29.13:37:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1514554664.91.0.213398074469.issue32445@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-12-29 13:37:44ncoghlansetrecipients: + ncoghlan, barry
2017-12-29 13:37:44ncoghlansetmessageid: <1514554664.91.0.213398074469.issue32445@psf.upfronthosting.co.za>
2017-12-29 13:37:44ncoghlanlinkissue32445 messages
2017-12-29 13:37:44ncoghlancreate