← Back
Editing: namespace.cpython-311.pyc
� �@�c�` � � � d Z ddlZddlZddlZddlmZ ddlmZmZ ddl m Z mZmZ ddl mZ ddlmZ ddlmZ dd lmZ e G d � de � � � � ZdS )z5Implementation of namespace-related magic functions. � N)�page)�StdinNotImplementedError� UsageError)�Magics�magics_class� line_magic)�skip_doctest)�DEFAULT_ENCODING)�read_py_file)�get_py_filenamec � � e Zd ZdZedd�� � Zedd�� � Zeedd�� � � � Zedd�� � Z edd�� � Z edd �� � Zedd �� � Zeedd�� � � � Z eedd�� � � � Zeedd �� � � � Zedd�� � Zedd�� � Zedd�� � ZdS )�NamespaceMagicsz�Magics to manage various aspects of the user's namespace. These include listing variables, introspecting into them, etc. � Nc �� � d}t j d|� � � � � \ }}}}|s|s|rd}d|v r| � |� � dS | j � d|||�� � dS )zpProvide detailed information about an object. '%pinfo object' is just a synonym for object? or ?object.r z(pinfo )?(\?*)(.*?)(\??$)� �*�pinfo��detail_level� namespacesN)�re�match�groups�psearch�shell�_inspect)�self�parameter_sr r r �qmark1�oname�qmark2s �?/usr/lib/python3/dist-packages/IPython/core/magics/namespace.pyr zNamespaceMagics.pinfo( s� � � �� �x�4�[�A�A�H�H�J�J� "��f�U�6�� �F� �f� ��L��%�<�<��L�L��������J�����\�+5� � 7� 7� 7� 7� 7� c �B � | j � d|d|�� � dS )zyProvide extra detailed information about an object. '%pinfo2 object' is just a synonym for object?? or ??object.r r r N�r r �r r r s r"