U ifD @ s d Z ddgZddlmZ ddlZddlZddlZddlZddlZej dkrXddl Z dZnddlZdZej ejB Zd Zer~d ZndZdd ZG dd dZdZG dd dZdS )zProvides shared memory for direct access across processes. The API of this package is currently provisional. Refer to the documentation for details. SharedMemory ShareableList )partialNntFT z/psm_Zwnsm_c C sB t tt d } | dks tdtt| }t|t ks>t|S )z6Create a random filename for the shared memory object. z_SHM_NAME_PREFIX too long)_SHM_SAFE_NAME_LENGTHlen_SHM_NAME_PREFIXAssertionErrorsecretsZ token_hex)nbytesname r B/opt/alt/python38/lib64/python3.8/multiprocessing/shared_memory.py_make_filename&