Message144798
| Author |
meador.inge |
| Recipients |
Yury.Selivanov, daniel.urban, eric.snow, meador.inge, ncoghlan |
| Date |
2011年10月03日.01:36:04 |
| SpamBayes Score |
0.00049755233 |
| Marked as misclassified |
No |
| Message-id |
<1317605766.23.0.467816301133.issue13062@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Here is a first cut at a patch. There is one slight deviation from the original spec:
> some nice error checking for when the generator's frame is already gone > (or the supplied object isn't a generator iterator).
The attached patch returns empty mappings for these cases. I can easily
add the error checks, but in what cases is it useful to know *exactly*
why a mapping could not be created? Having an empty mapping for all
invalid cases is simpler and seems more robust. |
|