A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20060314/9e73c71c/attachment.htm below:

<br><div><span class="gmail_quote">On 3/14/06, <b class="gmail_sendername">Raymond Hettinger</b> &lt;<a href="mailto:raymond.hettinger@verizon.net">raymond.hettinger@verizon.net</a>&gt; wrote:</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Once place where we already have CPython specific support is in<br>sys.setcheckinterval().&nbsp;&nbsp;That suggests adapting that function or adding a new<br>one to&nbsp;&nbsp;temporarily stop switching, almost the same as<br>sys.setcheckinterval
(sys.maxint) but continuing to perform other periodic checks<br>for control-break and such.</blockquote><div><br>Don't forget that sys.setcheckinterval() is more of a hint than a requirement. It's easy to wrap sys.setcheckinterval
() in a try/except or an if-hasattr, and just ignore the case where it doesn't exist ('it won't be necessary'). Doing the same thing with a 'critical section' would be a lot harder. I would also assume a 'critical section' should not allow threads in extension modules, even if they explicitly allow threads. That's quite a bit different from making the check-interval infinitely high for the duration of the block.
<br></div></div><br>-- <br>Thomas Wouters &lt;<a href="mailto:thomas@python.org">thomas@python.org</a>&gt;<br><br>Hi! I'm a .signature virus! copy me into your .signature file to help me spread!

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4