[pypy-commit] pypy default: issue1746 -- added __closure__ to functions

alex_gaynor noreply at buildbot.pypy.org
Tue Apr 29 04:59:19 CEST 2014


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r71057:9913d8bb1a20
Date: 2014-04-28 19:58 -0700
http://bitbucket.org/pypy/pypy/changeset/9913d8bb1a20/

Log:	issue1746 -- added __closure__ to functions

diff --git a/pypy/interpreter/typedef.py b/pypy/interpreter/typedef.py
--- a/pypy/interpreter/typedef.py
+++ b/pypy/interpreter/typedef.py
@@ -809,6 +809,7 @@
     __dict__ = getset_func_dict,
     __defaults__ = getset_func_defaults,
     __globals__ = interp_attrproperty_w('w_func_globals', cls=Function),
+    __closure__ = GetSetProperty(Function.fget_func_closure),
     __module__ = getset___module__,
     __weakref__ = make_weakref_descr(Function),
 )


More information about the pypy-commit mailing list