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 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.
History
Date User Action Args
2011-10-03 01:36:06meador.ingesetrecipients: + meador.inge, ncoghlan, daniel.urban, Yury.Selivanov, eric.snow
2011-10-03 01:36:06meador.ingesetmessageid: <1317605766.23.0.467816301133.issue13062@psf.upfronthosting.co.za>
2011-10-03 01:36:05meador.ingelinkissue13062 messages
2011-10-03 01:36:05meador.ingecreate