[issue11119] Passing a socket to a process (multiprocessing module)

2011-02-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Opened issue11127 for raising a TypeError when trying to pickle any socket. -- status: pending -> closed ___ Python tracker ___ ___

[issue11119] Passing a socket to a process (multiprocessing module)

2011-02-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, sockets cannot be pickled on any platform: >>> sock = socket.create_connection(("www.python.org", 80)) __main__:1: ResourceWarning: unclosed >>> s = pickle.loads(pickle.dumps(sock)) >>> s.getpeername() Traceback (most recent call last): File "", line 1

[issue11119] Passing a socket to a process (multiprocessing module)

2011-02-04 Thread R. David Murray
Changes by R. David Murray : -- components: +Library (Lib) -None nosy: +asksol, jnoller type: crash -> behavior ___ Python tracker ___ ___

[issue11119] Passing a socket to a process (multiprocessing module)

2011-02-04 Thread pen hill
New submission from pen hill : When I run the following listing (server_multi.py) by using multiprocessing module of python, it runs successfully on a Linux machine. However, on a 64-bit windows machine I get the following error: pickle.PicklingError: Can't pickle : it's not found as __main__