Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/utils/__pycache__/frame.cpython-39.pyc
Ðазад
a o�h� � @ s4 d Z ddlZdd� Zdd� Zddd �Zd d d�ZdS )z* Utilities for working with stack frames. � Nc s2 |� dd�}t�|d �j� t� fdd�| D ��S )ak Extract a set of variables by name from another frame. Parameters ---------- *names : str One or more variable names which will be extracted from the caller's frame. **kw : integer, optional How many frames in the stack to walk when looking for your variables. The default is 0, which will use the frame where the call was made. Examples -------- :: In [2]: def func(x): ...: y = 1 ...: print(sorted(extract_vars('x','y').items())) ...: In [3]: func('hello') [('x', 'hello'), ('y', 1)] �depthr � c 3 s | ]}|� | fV qd S �N� ��.0�k�ZcallerNSr ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/IPython/utils/frame.py� <genexpr>3 � zextract_vars.<locals>.<genexpr>)�get�sys� _getframe�f_locals�dict)�names�kwr r r r �extract_vars s r c s"