消息 [144799]
Because a generator can legitimately have no locals:
>>> def gen():
... yield 1
...
>>> g = gen()
>>> g.gi_frame.f_locals
{}
Errors should be reported as exceptions - AttributeError or TypeError if there's no gi_frame and then ValueError or RuntimeError if gi_frame is None. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2011-10-03 02:02:59 | ncoghlan | 修改 | recipients:
+ ncoghlan, meador.inge, daniel.urban, Yury.Selivanov, eric.snow |
| 2011-10-03 02:02:59 | ncoghlan | 修改 | messageid: <1317607379.86.0.272110831639.issue13062@psf.upfronthosting.co.za> |
| 2011-10-03 02:02:59 | ncoghlan | 链接 | issue13062 messages |
| 2011-10-03 02:02:59 | ncoghlan | 创建 | |
|