homepage

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 arigo
Recipients arigo
Date 2016年12月06日.11:57:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481025437.98.0.335601727204.issue28884@psf.upfronthosting.co.za>
In-reply-to
Content
(B6) this program fails the check for no sys.exc_info(), even though at
 the point this assert runs (called from the <== line) we are not in
 any except/finally block. This is a generalization of
 test_exceptions:test_generator_doesnt_retain_old_exc::
 import sys
 def g():
 try:
 raise ValueError
 except ValueError:
 yield 1
 assert sys.exc_info() == (None, None, None)
 yield 2
 gen = g()
 try:
 raise IndexError
 except IndexError:
 assert next(gen) is 1
 assert next(gen) is 2 # <==
History
Date User Action Args
2016年12月06日 11:57:18arigosetrecipients: + arigo
2016年12月06日 11:57:17arigosetmessageid: <1481025437.98.0.335601727204.issue28884@psf.upfronthosting.co.za>
2016年12月06日 11:57:17arigolinkissue28884 messages
2016年12月06日 11:57:17arigocreate

AltStyle によって変換されたページ (->オリジナル) /