| Server IP : 35.80.110.71 / Your IP : 216.73.216.52 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/IPython/utils/__pycache__/ |
Upload File : |
�
}�e� � �, � d Z ddlZd� Zd� Zdd�Zdd�Zy) z*
Utilities for working with stack frames.
� Nc � �� |j dd� }t j |dz � j �t �fd�| 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 �, �K � | ] }|�| f�� �
y �w�N� ��.0�k�callerNSs ��5/usr/lib/python3/dist-packages/IPython/utils/frame.py� <genexpr>zextract_vars.<locals>.<genexpr>3 � �� �� �/�A��8�A�;��/�� �)�get�sys� _getframe�f_locals�dict)�names�kwr r s @r
�extract_varsr s>