[Python-Dev] PEP 3148 ready for pronouncement (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu May 27 03:46:07 CEST 2010


On 27/05/10 00:31, Brian Quinlan wrote:

You have two semantic choices here: 1. let the interpreter exit with the future still running 2. wait until the future finishes and then exit

I'd go for (1). I don't think it's unreasonable to expect a program that wants all its tasks to finish to explicitly wait for that to happen.

Also, automatically doing (2) would seem to make it difficult for a program to bail out if something unexpected happens. It would have to explicitly shut down the thread pool instead of just letting an exception propagate.

-- Greg



More information about the Python-Dev mailing list