]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport fix for SF bug 692776.
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 22 May 2003 18:11:20 +0000 (18:11 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 22 May 2003 18:11:20 +0000 (18:11 +0000)
commit826f68b25b8fe952c58ee71a8f954a0909218240
treea7c73aa0f2eb0efbf4c58f39ac5a6b2e0271bb47
parent8e0ef042903ab01882e331ffad5fdedc162a48ba
Backport fix for SF bug 692776.

Add a tp_new slot to function objects that handles the case of a
function requiring a closure.  Put the function type in the new
module, rather than having a function new.function().  Add tests.
Lib/test/test_new.py
Modules/newmodule.c
Objects/funcobject.c