Meador Inge <mead...@gmail.com> added the comment: 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. ---------- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file23303/issue13062.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13062> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com