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 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:29vstinnersetrecipients: + vstinner, neologix, mouad
2011年06月25日 22:46:28vstinnersetmessageid: <1309041988.87.0.291582600397.issue12410@psf.upfronthosting.co.za>
2011年06月25日 22:46:28vstinnerlinkissue12410 messages
2011年06月25日 22:46:28vstinnercreate

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