
    MZdg                         d Z d Zd Zy)zL
This module adds several functions for interactive source code inspection.
c                     t        | t              rIt        |       \  }}|dk7  r6t        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      8/usr/lib/python3/dist-packages/sympy/utilities/source.py	get_classr      sf     +s#*;7)?!8RcU3Y@KK($4<iHJ J    c                 P    | j                  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	      s?     ..
C
by|DS>8C!GH---r   N)__doc__r   r	    r   r   <module>r      s   
$.r   