[issue12857] Expose called function on frame object

Nick Coghlan report at bugs.python.org
Thu May 25 08:39:20 EDT 2017


Nick Coghlan added the comment:

Regarding Mark's point about the anonymous scopes created for things like list comprehensions, at least in CPython, those are actually full functions with generated names like "<listcomp>" (at module level) or "f.<locals>.<listcomp>" (at function level).

>From the point of view of code consuming the frame stack, they'd look pretty similar to a lambda expression, only with a different generated name.

----------

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


More information about the Python-bugs-list mailing list