I think this is a part of the language definition, at the very least
pypy does the same. The reason is that you can't write python code
that can be safely executed at an arbitrary point in time (it's hard
enough to write runnable-from-a-signal handler C code), so you defer
it until at least the bytecode boundary so the internal structures are
in a somewhat consistent shape

cheers,
fijal
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to