Message227401
| Author |
r.david.murray |
| Recipients |
docs@python, r.david.murray |
| Date |
2014年09月24日.00:51:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1411519909.22.0.512722932689.issue22475@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The get_stack method docs say:
"If the coroutine is active, returns the stack where it was suspended."
I presume this means something more like "if the coroutine is not done...", since in English you can't be both active *and* suspended. Or does it mean "last suspended"?
Then it talks about limit and how stacks limit returns newest frames while with tracebacks it is oldest frames...but the last sentence says that for suspended coroutines only one frame is returned.
So there is a definite lack of clarity here: can we get multiple frames if the coroutine is not suspended (in which case that first sentence seems likely to be the 'last suspended' interpretation), or for non-tracebacks can we only ever get one frame, in which case why talk about limit returning the newest frames for stacks? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年09月24日 00:51:49 | r.david.murray | set | recipients:
+ r.david.murray, docs@python |
| 2014年09月24日 00:51:49 | r.david.murray | set | messageid: <1411519909.22.0.512722932689.issue22475@psf.upfronthosting.co.za> |
| 2014年09月24日 00:51:48 | r.david.murray | link | issue22475 messages |
| 2014年09月24日 00:51:47 | r.david.murray | create |
|