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 ncoghlan
Recipients Yury.Selivanov, daniel.urban, eric.snow, meador.inge, ncoghlan
Date 2011-10-03.02:12:03
SpamBayes Score 2.6674556e-05
Marked as misclassified No
Message-id <1317607923.92.0.651978518474.issue13062@psf.upfronthosting.co.za>
In-reply-to
Content
The function case is simpler - AttributeError or TypeError if there's no __closure__ attribute, empty mapping if there's no closure.

I've also changed my mind on the "no frame" generator case - since that mapping will evolve over time as the generator executes anyway, the empty mapping accurately reflects the "no locals currently defined" that applies when the generator either hasn't been started yet or has finished. People can use getgeneratorstate() to find that information if they need to know.
History
Date User Action Args
2011-10-03 02:12:03ncoghlansetrecipients: + ncoghlan, meador.inge, daniel.urban, Yury.Selivanov, eric.snow
2011-10-03 02:12:03ncoghlansetmessageid: <1317607923.92.0.651978518474.issue13062@psf.upfronthosting.co.za>
2011-10-03 02:12:03ncoghlanlinkissue13062 messages
2011-10-03 02:12:03ncoghlancreate