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.

作者 eric.snow
收信人 Yury.Selivanov, eric.snow, meador.inge, ncoghlan
日期 2011-09-29.20:54:03
SpamBayes Score 0.26205757
Marked as misclassified
Message-id <1317329644.79.0.613051731515.issue13062@psf.upfronthosting.co.za>
In-reply-to
内容
See:
http://hg.python.org/cpython/file/default/Include/funcobject.h#l34
http://hg.python.org/cpython/file/default/Objects/funcobject.c#l454


   454 /* func_new() maintains the following invariants for closures.  The
   455    closure must correspond to the free variables of the code object.
   456 
   457    if len(code.co_freevars) == 0:
   458        closure = NULL
   459    else:
   460        len(closure) == len(code.co_freevars)
   461    for every elt in closure, type(elt) == cell
   462 */
历史
日期 用户 动作 参数
2011-09-29 20:54:04eric.snow修改recipients: + eric.snow, ncoghlan, meador.inge, Yury.Selivanov
2011-09-29 20:54:04eric.snow修改messageid: <1317329644.79.0.613051731515.issue13062@psf.upfronthosting.co.za>
2011-09-29 20:54:03eric.snow链接issue13062 messages
2011-09-29 20:54:03eric.snow创建