← Back
Editing: magic.cpython-311.pyc
� cR�a� � �t � d Z ddlZddlZddlmZmZmZ ddlmZ ddl Z e G d� de� � � � Z d� ZdS )zW Pythran integration into IPython. * provides the %%pythran magic function to ipython � N)�Magics�magics_class� cell_magic)�magic_argumentsc �b � � e Zd ZdZ� fd�Zd� Z ej � � ej ddg �� � ej ddg �� � ej ddg �� � ej d dg �� � ej d dg �� � ed� � � � � � � � � � � � � � � Z � xZ S )� PythranMagicszE Class to make it possible to use pythran as a magic IPython command.c �f �� t t | � � � |� � i | _ dS )z Init the pythran magic stuff. N)�superr �__init__�_reloads)�self�shell� __class__s ��//usr/lib/python3/dist-packages/pythran/magic.pyr zPythranMagics.__init__ s, �� � �m�T�"�"�+�+�E�2�2�2��� � � � c �| � | j � d� |j � � � D � � � � dS )z Import only globals modules. c �D � i | ]\ }}|� d � � �||��S )�__)� startswith)�.0�k�vs r � <dictcomp>z-PythranMagics._import_all.<locals>.<dictcomp>"