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.
Created on 2011年07月03日 07:07 by Devin Jeanpierre, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| exception_chaining.py | Devin Jeanpierre, 2011年07月03日 07:18 | |||
| Messages (3) | |||
|---|---|---|---|
| msg139670 - (view) | Author: Devin Jeanpierre (Devin Jeanpierre) * | Date: 2011年07月03日 07:07 | |
It's probably best shown by example: http://ideone.com/4YkqV Have fun! This one looks hard. Some notes: Exchanging g2() for iter([1]) makes this go away. Wrapping g2 inside a non-generator iterator does not make this go away. Removing the call to next(it) after it = g2() makes the problem go away, as does replacing those two lines with next(g2()). The file used in that ideone paste is attached for your convenience. --- Debugging is impractical for me with this bug in existence. It never stopped printing the traceback before I killed the process. (And let's forget about debug prints!) |
|||
| msg139672 - (view) | Author: Devin Jeanpierre (Devin Jeanpierre) * | Date: 2011年07月03日 07:18 | |
Updated to be clearer / less full of mistakes that coincidentally work: http://ideone.com/6ZYCL |
|||
| msg139695 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2011年07月03日 18:44 | |
New changeset cc7ae81cfe91 by Benjamin Peterson in branch '3.2': restore a generator's caller's exception state both on yield and (last) return http://hg.python.org/cpython/rev/cc7ae81cfe91 New changeset 33dca840938d by Benjamin Peterson in branch 'default': merge 3.2 (#12475) http://hg.python.org/cpython/rev/33dca840938d |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:19 | admin | set | github: 56684 |
| 2011年07月03日 18:44:33 | python-dev | set | status: open -> closed nosy: + python-dev messages: + msg139695 resolution: fixed stage: resolved |
| 2011年07月03日 14:26:38 | r.david.murray | set | nosy:
+ ncoghlan |
| 2011年07月03日 07:27:18 | georg.brandl | set | assignee: pitrou nosy: + pitrou |
| 2011年07月03日 07:18:25 | Devin Jeanpierre | set | files:
+ exception_chaining.py messages: + msg139672 |
| 2011年07月03日 07:17:04 | Devin Jeanpierre | set | files: - exception_chaining.py |
| 2011年07月03日 07:07:43 | Devin Jeanpierre | create | |