(original) (raw)

This is exactly how signals are implemented in Python :-)


Victor

Le lundi 9 février 2015, Robert Collins <robertc@robertcollins.net> a écrit :
On 9 February 2015 at 09:11, Maciej Fijalkowski <fijall@gmail.com> wrote:

> Hi Francis

>

> Feel free to steal most of vmprof code, it should generally work

> without requiring to patch cpython (python 3 patches appreciated :-).

> As far as timer goes - it seems not to be going anywhere, I would

> rather use a background thread or something



What about setting a flag when the signal arrives and checking it at

the next bytecode evaluation or something?



-Rob

_______________________________________________

Python-Dev mailing list

Python-Dev@python.org

https://mail.python.org/mailman/listinfo/python-dev

Unsubscribe: https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com