;ò
ÎÑAHc           @   sC   d  Z  d k Z d k l Z d k l Z d e f d „  ƒ  YZ d S(   s)   Support for interactive macros in IPythonN(   s   Term(   s   IPyAutocalls   Macroc           B   s;   t  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   s×   Simple class to store the value of macros as strings.

    Macro is just a callable that executes a string of IPython
    input when called.
    
    Args to macro are available in _margv list if you need them.
    c         C   s    d i  | ƒ i ƒ  d |  _ d  S(   Ns    s   
(   s   joins   datas   rstrips   selfs   value(   s   selfs   data(    (    s=   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/macro.pys   __init__   s    c         C   s   |  i Sd  S(   N(   s   selfs   value(   s   self(    (    s=   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/macro.pys   __str__   s    c         C   s   d t  |  i ƒ Sd  S(   Ns   IPython.macro.Macro(%s)(   s   reprs   selfs   value(   s   self(    (    s=   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/macro.pys   __repr__"   s    c         G   s4   t  i i ƒ  | |  i i d <|  i i |  i ƒ d  S(   Ns   _margv(	   s   Terms   couts   flushs   argss   selfs   _ips   user_nss   runliness   value(   s   selfs   args(    (    s=   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/macro.pys   __call__%   s    c         C   s   h  d |  i <Sd S(   s%    needed for safe pickling via %store s   valueN(   s   selfs   value(   s   self(    (    s=   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/macro.pys   __getstate__*   s     (   s   __name__s
   __module__s   __doc__s   __init__s   __str__s   __repr__s   __call__s   __getstate__(    (    (    s=   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/macro.pys   Macro   s    				(   s   __doc__s   IPython.ipapis   IPythons   IPython.genutilss   Terms   IPyAutocalls   Macro(   s   IPythons   Macros   Terms   IPyAutocall(    (    s=   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/macro.pys   ?   s   		