Message177059
When the generator is used in a for loop, the interpreter handles the
StopIteration in its eval loop, and the exception is not raised. So it may be
considered as confusing to have pdb behave differently with a generator
depending on its context. A way to fix this would be to not ignore the return
debug events, with the drawback of a more verbose debug process with
generators. |
|
Date |
User |
Action |
Args |
2012-12-06 21:04:43 | xdegaye | set | recipients:
+ xdegaye, gvanrossum, georg.brandl, asvetlov |
2012-12-06 21:04:43 | xdegaye | set | messageid: <1354827883.66.0.0419724430279.issue16596@psf.upfronthosting.co.za> |
2012-12-06 21:04:43 | xdegaye | link | issue16596 messages |
2012-12-06 21:04:43 | xdegaye | create | |
|