This is exactly how signals are implemented in Python :-)<div><br></div><div>Victor<br><br>Le lundi 9 février 2015, Robert Collins <<a href="mailto:robertc@robertcollins.net">robertc@robertcollins.net</a>> a écrit :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 9 February 2015 at 09:11, Maciej Fijalkowski <<a href="javascript:;" onclick="_e(event, 'cvml', 'fijall@gmail.com')">fijall@gmail.com</a>> wrote:<br>
> Hi Francis<br>
><br>
> Feel free to steal most of vmprof code, it should generally work<br>
> without requiring to patch cpython (python 3 patches appreciated :-).<br>
> As far as timer goes - it seems not to be going anywhere, I would<br>
> rather use a background thread or something<br>
<br>
What about setting a flag when the signal arrives and checking it at<br>
the next bytecode evaluation or something?<br>
<br>
-Rob<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'Python-Dev@python.org')">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com" target="_blank">https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com</a><br>
</blockquote></div>