Author vstinner
Recipients vstinner
Date 2018-12-12.23:16:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544656571.55.0.788709270274.issue35477@psf.upfronthosting.co.za>
In-reply-to
Content
Currently, the error only occurs when apply() is called:
---
import multiprocessing

def the_test():
    pool = multiprocessing.Pool(1)
    with pool:
        print(pool.apply(int, (2,)))
    with pool:
        print(pool.apply(int, (3,))) # <-- raise here

the_test()
---

I would prefer to get an error on at the second "with pool:" line.
History
Date User Action Args
2018-12-12 23:16:11vstinnersetrecipients: + vstinner
2018-12-12 23:16:11vstinnersetmessageid: <1544656571.55.0.788709270274.issue35477@psf.upfronthosting.co.za>
2018-12-12 23:16:11vstinnerlinkissue35477 messages
2018-12-12 23:16:11vstinnercreate