Message144801
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. |
|
Date |
User |
Action |
Args |
2011-10-03 02:12:03 | ncoghlan | set | recipients:
+ ncoghlan, meador.inge, daniel.urban, Yury.Selivanov, eric.snow |
2011-10-03 02:12:03 | ncoghlan | set | messageid: <1317607923.92.0.651978518474.issue13062@psf.upfronthosting.co.za> |
2011-10-03 02:12:03 | ncoghlan | link | issue13062 messages |
2011-10-03 02:12:03 | ncoghlan | create | |
|