
    Ed                     X    d Z ddlmZ ddlZ eddd          d             Zd	 Zd
 ZdS )zL
This module adds several functions for interactive source code inspection.
    )
deprecatedNz
    The source() function is deprecated. Use inspect.getsource() instead, or
    if you are in IPython or Jupyter, the ?? feature.
    z1.3zdeprecated-source)deprecated_since_versionactive_deprecations_targetc                     t          dt          j        |           z             t          t          j        |                      dS )z
    Prints the source code of a given object.

    .. deprecated:: 1.3

       The ``source()`` function is deprecated. Use ``inspect.getsource()`` or
       ``??`` in IPython/Jupyter instead.

    zIn file: %sN)printinspectgetsourcefile	getsource)objects    6lib/python3.11/site-packages/sympy/utilities/source.pysourcer   	   sA    $ 
-'/77
7888	'
F
#
#$$$$$    c                     t          | t                    r^t          |           \  }}|dk    rFt          t	          |i i dg          |          } t          |           st          d|d|d          | S )z
    Convert a string version of a class name to the object.

    For example, get_class('sympy.core.Basic') will return
    class Basic located in module sympy.core
     *'.z' is not a callable.)
isinstancestrget_mod_funcgetattr
__import__callableAttributeError)lookup_viewmod_name	func_names      r   	get_classr      s     +s## J*;77)? 	J!8RcU33Y@ @KK(( J$n4<HHiiiHJ J Jr   c                 n    |                      d          }|dk    r| dfS | d|         | |dz   d         fS )a  
    splits the string path to a class into a string path to the module
    and the name of the class.

    Examples
    ========

    >>> from sympy.utilities.source import get_mod_func
    >>> get_mod_func('sympy.core.basic.Basic')
    ('sympy.core.basic', 'Basic')

    r   r   N   )rfind)callbackdots     r   r   r   1   sK     ..

C
by |DSD>8C!GHH---r   )__doc__sympy.utilities.decoratorr   r   r   r   r    r   r   <module>r(      s     1 0 0 0 0 0  #2  % % %  $. . . . .r   