OpenQuizz
Une application de gestion des contenus pédagogiques
pip._internal.utils.parallel Namespace Reference

Functions

def closing (pool)
 

Variables

 Pool
 
 S
 
 T
 
 LACK_SEM_OPEN
 
 TIMEOUT
 
 map_multiprocess
 
 map_multithread
 

Detailed Description

Convenient parallelization of higher order functions.

This module provides two helper functions, with appropriate fallbacks on
Python 2 and on systems lacking support for synchronization mechanisms:

- map_multiprocess
- map_multithread

These helpers work like Python 3's map, with two differences:

- They don't guarantee the order of processing of
  the elements of the iterable.
- The underlying process/thread pools chop the iterable into
  a number of chunks, so that for very long iterables using
  a large value for chunksize can make the job complete much faster
  than using the default value of 1.

Function Documentation

◆ closing()

def pip._internal.utils.parallel.closing (   pool)
Return a context manager making sure the pool closes properly.

Variable Documentation

◆ LACK_SEM_OPEN

LACK_SEM_OPEN

◆ map_multiprocess

map_multiprocess

◆ map_multithread

map_multithread

◆ Pool

Pool

◆ S

S

◆ T

T

◆ TIMEOUT

TIMEOUT