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.

Author josh.r
Recipients jhrmnn, josh.r
Date 2018-10-09.23:04:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539126298.13.0.545547206417.issue34947@psf.upfronthosting.co.za>
In-reply-to
Content
Problem: The variables from the nested functions (which comprehensions are effectively a special case of) aren't actually closure variables for the function being inspected.

Allowing recursive identification of all closure variables might be helpful in some contexts, but you wouldn't want it to be the only behavior; it's easier to convert a non-recursive solution to a recursive solution than the other way around.
History
Date User Action Args
2018-10-09 23:04:58josh.rsetrecipients: + josh.r, jhrmnn
2018-10-09 23:04:58josh.rsetmessageid: <1539126298.13.0.545547206417.issue34947@psf.upfronthosting.co.za>
2018-10-09 23:04:58josh.rlinkissue34947 messages
2018-10-09 23:04:58josh.rcreate