New submission from Yury Selivanov <yseliva...@gmail.com>: With this patch 'contextlib.ExitStack.callback(callback, *args, **kwds)' will validate that the passed callback actually accept the passed '*args' and '**kwds'.
P.S. If this patch comes through - I'll create two more issues for 'atexit.register' and 'unittest.TestCase.addCleanup'. (I'll also look through the stdlib to find if there are some other places where this is needed.) ---------- components: Library (Lib) files: contextlib.patch keywords: patch messages: 164021 nosy: Yury.Selivanov, ncoghlan priority: normal severity: normal status: open title: Validate callbacks in 'contextlib.ExitStack.callback()' type: enhancement versions: Python 3.3 Added file: http://bugs.python.org/file26159/contextlib.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15185> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com