[issue24056] Expose closure & generator status in function repr()

Mark Dickinson report at bugs.python.org
Tue Apr 28 16:27:11 CEST 2015


Mark Dickinson added the comment:

I can see that the `generator` information would be useful.  What's the use-case for reporting that a function is a closure?  I'm having trouble thinking of a case where it's useful to know that a function is a closure without also knowing which locals refer to cells.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24056>
_______________________________________


More information about the Python-bugs-list mailing list