[issue13139] multiprocessing.map skips finally blocks

Florent Xicluna report at bugs.python.org
Sun Oct 9 22:58:33 CEST 2011


Florent Xicluna <florent.xicluna at gmail.com> added the comment:

Same behavior on Python 3.2 with this code:


from multiprocessing import Pool
from time import sleep

def Process(x):
    try:
        print(x)
        sleep(.6-x/10.)
        raise Exception('Exception: %d' % x)
    finally:
        print('Finally: %d' % x)

Pool(3).map(Process, [1, 2, 3])

----------
components: +Library (Lib) -None
nosy: +flox
versions: +Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13139>
_______________________________________


More information about the Python-bugs-list mailing list