[Tim]
> Me too, although it won't stay that simple, and I'm clear as mud on
> how implementations other than CPython could implement this.

[Guido]
> Another good reason to keep it accessible from the C API only. Now I'm
> -0 on adding it. I suggest that if someone really wants this
> accessible from Python, they should research how Jython, IronPython,
> PyPy and Stackless could handle this, and report their research in a
> PEP.

then how does interrupt_main work? is it implementation-agnostic?

-----
>>> import thread
>>> help(thread.interrupt_main)
Help on built-in function interrupt_main in module thread:

interrupt_main(...)
    interrupt_main()

    Raise a KeyboardInterrupt in the main thread.
    A subthread can use this function to interrupt the main thread.
-----

just let me raise arbitrary exceptions (don't limit it to KeyboardInterrupt)



-tomer
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to