관리-도구
편집 파일: pool.cpython-37.pyc
B � f�h � @ s0 d dgZ ddlZddlZddlZddlZddlZddlZddlZddlm Z ddlm Z mZ dZdZ dZe�� Zdd � Zd d� ZG dd � d e�ZG dd� d�Zdd� ZG dd� de�Zd$dd�Zdd� ZG dd � d e�ZG dd� de�ZeZG dd� de�ZG dd � d e�ZG d!d"� d"e�Z G d#d� de�Z!dS )%�Pool� ThreadPool� N� )�util)�get_context�TimeoutError� c C s t t| � �S )N)�list�map)�args� r �9/opt/alt/python37/lib64/python3.7/multiprocessing/pool.py�mapstar+ s r c C s t t�| d | d ��S )Nr r )r � itertools�starmap)r r r r �starmapstar. s r c @ s e Zd Zdd� Zdd� ZdS )�RemoteTracebackc C s || _ d S )N)�tb)�selfr r r r �__init__6 s zRemoteTraceback.__init__c C s | j S )N)r )r r r r �__str__8 s zRemoteTraceback.__str__N)�__name__� __module__�__qualname__r r r r r r r 5 s r c @ s e Zd Zdd� Zdd� ZdS )�ExceptionWithTracebackc C s0 t �t|�||�}d�|�}|| _d| | _d S )N� z """ %s""")� traceback�format_exception�type�join�excr )r r r r r r r <