Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/jedi/inference/compiled/subprocess/__pycache__/__init__.cpython-39.pyc
Ðазад
a j�h�K � @ sf d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z ddl mZ ddlm Z mZ ddlmZmZ ddlmZ ddlmZ dd lmZ dd lmZmZmZ ddlmZ er�ddlmZ ej �!ej �"e#�d �Z$dZ%dd� Z&dd� Z'dd� Z(dd� Z)dd� Z*G dd� d�Z+G dd� de+�Z,G dd� de+�Z-G dd � d �Z.G d!d"� d"�Z/G d#d$� d$�Z0dS )%a� Makes it possible to do the compiled analysis in a subprocess. This has two goals: 1. Making it safer - Segfaults and RuntimeErrors as well as stdout/stderr can be ignored and dealt with. 2. Make it possible to handle different Python versions as well as virtualenvs. The architecture here is briefly: - For each Jedi `Environment` there is a corresponding subprocess which operates within the target environment. If the subprocess dies it is replaced at this level. - `CompiledSubprocess` manages exactly one subprocess and handles communication from the parent side. - `Listener` runs within the subprocess, processing each request and yielding results. - `InterpreterEnvironment` provides an API which matches that of `Environment`, but runs functionality inline rather than within a subprocess. It is thus used both directly in places where a subprocess is unnecessary and/or undesirable and also within subprocesses themselves. - `InferenceStateSubprocess` (or `InferenceStateSameProcess`) provide high level access to functionality within the subprocess from within the parent. Each `InterpreterState` has an instance of one of these, provided by its environment. � N)�partial)�Thread)�Dict� TYPE_CHECKING)�pickle_dump�pickle_load)�debug)�memoize_method)� functions)�DirectObjectAccess� AccessPath�SignatureParam)� InternalError��InferenceStatez__main__.py� c O sR t jdkr4z tj}W n ty* d}Y n0 ||d<