Message139127
| Author |
vstinner |
| Recipients |
mouad, neologix, vstinner |
| Date |
2011年06月25日.22:46:28 |
| SpamBayes Score |
6.216398e-05 |
| Marked as misclassified |
No |
| Message-id |
<1309041988.87.0.291582600397.issue12410@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Oh, there is another possible implementation: use a subprocess. But if the timeout is implemented using a subprocess, the syntax cannot be:
with timeout(5):
do_something()
It should be something like:
timeout(5, """if 1:
import os, sys
...
do_something()
...
sys.exit(0)
""")
Some tests are already doing that manually. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年06月25日 22:46:29 | vstinner | set | recipients:
+ vstinner, neologix, mouad |
| 2011年06月25日 22:46:28 | vstinner | set | messageid: <1309041988.87.0.291582600397.issue12410@psf.upfronthosting.co.za> |
| 2011年06月25日 22:46:28 | vstinner | link | issue12410 messages |
| 2011年06月25日 22:46:28 | vstinner | create |
|