[issue19395] unpickled LZMACompressor is crashy

Nadeem Vawda report at bugs.python.org
Sat Oct 26 20:11:41 CEST 2013


Nadeem Vawda added the comment:

It looks like there's also a separate problem in the multiprocessing
module. The following code hangs after hitting a TypeError trying to
pickle one of the TextIOWrapper objects:

    import multiprocessing

    def read(f): return f.read()

    files = [open(path) for path in 3 * ['/dev/null']]
    pool = multiprocessing.Pool()
    results = pool.map(read, files)
    print(results)

----------
nosy: +jnoller, sbt

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


More information about the Python-bugs-list mailing list