
    ^h                     J    S r  " S S\5      r " S S\5      r " S S\5      rg)zs
Autocall capabilities for IPython.core.

Authors:

* Brian Granger
* Fernando Perez
* Thomas Kluyver

Notes
-----
c                   0    \ rS rSrSrSrSrSS jrS rSr	g)	IPyAutocall   zInstances of this class are always autocalled

This happens regardless of 'autocall' variable state. Use this to
develop macro-like mechanisms.
NTc                     Xl         g N_ipselfips     O/home/james-whalen/.local/lib/python3.13/site-packages/IPython/core/autocall.py__init__IPyAutocall.__init__'   s        c                     Xl         g)z|Will be used to set _ip point to current ipython instance b/f call

Override this method if you don't want this to happen.

Nr   r	   s     r   set_ipIPyAutocall.set_ip*   s	     r   r   r   )
__name__
__module____qualname____firstlineno____doc__r   rewriter   r   __static_attributes__ r   r   r   r      s    
 CGr   r   c                   "    \ rS rSrSrSrS rSrg)ExitAutocall3   zAn autocallable object which will be added to the user namespace so that
exit, exit(), quit or quit() are all valid ways to close the shell.Fc                 8    U R                   R                  5         g r   )r   ask_exit)r
   s    r   __call__ExitAutocall.__call__8   s    r   r   N)r   r   r   r   r   r   r    r   r   r   r   r   r   3   s    KGr   r   c                   "    \ rS rSrSrSS jrSrg)ZMQExitAutocall;   zExit IPython. Autocallable, so it needn't be explicitly called.

Parameters
----------
keep_kernel : bool
  If True, leave the kernel alive. Otherwise, tell the kernel to exit too
  (default).
c                 X    XR                   l        U R                   R                  5         g r   )r   keepkernel_on_exitr   )r
   keep_kernels     r   r    ZMQExitAutocall.__call__D   s    &1#r   r   N)F)r   r   r   r   r   r    r   r   r   r   r#   r#   ;   s    r   r#   N)r   objectr   r   r#   r   r   r   <module>r*      s.   :& (; l r   