mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Issue #11743: Rewrite multiprocessing connection classes in pure Python.
This commit is contained in:
parent
df77e3d4a0
commit
87cf220972
15 changed files with 490 additions and 983 deletions
|
@ -183,7 +183,7 @@ else:
|
|||
import time
|
||||
|
||||
from pickle import dump, load, HIGHEST_PROTOCOL
|
||||
from _multiprocessing import win32, Connection, PipeConnection
|
||||
from _multiprocessing import win32
|
||||
from .util import Finalize
|
||||
|
||||
def dump(obj, file, protocol=None):
|
||||
|
@ -411,6 +411,9 @@ else:
|
|||
# Make (Pipe)Connection picklable
|
||||
#
|
||||
|
||||
# Late import because of circular import
|
||||
from .connection import Connection, PipeConnection
|
||||
|
||||
def reduce_connection(conn):
|
||||
if not Popen.thread_is_spawning():
|
||||
raise RuntimeError(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue