%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyo

�
�9Zc@`s�ddlmZmZmZddlZddlZddlZddlZddlZddl	m
Z
mZmZddl
mZmZmZddlmZmZdddd	d
ddd
ddddgZd�Zd�Zdefd��YZd�Zd�Zd�Zdd�Zd�Zdada dd�Z!ej"d�Z#ddej"dd�Z$ej"d �Z%ia&ej'd!ej(�Z)de*e+dd"�Z,d#�Z-d$�Z.d%efd&��YZ/d'�Z0dS((i(tdivisiontabsolute_importtprint_functionN(tissubclass_tissubsctypet
issubdtype(tndarraytufunctasarray(t
getargspect
formatargspecRRRt	deprecatetdeprecate_with_doctget_includetinfotsourcetwhotlookfortbyte_boundst	safe_evalcC`s|ddl}|jdkrEtjjtjj|j�dd�}n3ddlj	}tjjtjj|j�d�}|S(s�
    Return the directory that contains the NumPy \*.h header files.

    Extension modules that need to compile against NumPy should use this
    function to locate the appropriate include directory.

    Notes
    -----
    When using ``distutils``, for example in ``setup.py``.
    ::

        import numpy as np
        ...
        Extension('extension_name', ...
                include_dirs=[np.get_include()])
        ...

    iNtcoretinclude(
tnumpytshow_configtNonetostpathtjointdirnamet__file__t
numpy.coreR(RtdR((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR
s*$cC`s
||_|S(N(t__name__(tfunctname((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt_set_function_name3s	t
_DeprecatecB`s)eZdZdddd�Zd�ZRS(s�
    Decorator class to deprecate old functions.

    Refer to `deprecate` for details.

    See Also
    --------
    deprecate

    cC`s||_||_||_dS(N(told_nametnew_nametmessage(tselfR%R&R'((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt__init__Ds		c
`s;|j}|j}|j}ddl�|dkr`y
�j}Wq`tk
r\�j}q`Xn|dkryd|�nd||f�|dk	r��d|7�n���fd�}t||�}�j}|dkr��}ndj	�|g�}||_y
�j
}	Wntk
r&nX|j
j|	�|S(s:
        Decorator call.  Refer to ``decorate``.

        iNs`%s` is deprecated!s%`%s` is deprecated, use `%s` instead!s
c`s�j�t��||�S(s1`arrayrange` is deprecated, use `arange` instead!(twarntDeprecationWarning(targstkwds(tdepdocR!twarnings(sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pytnewfuncass

(R%R&R'R/RR tAttributeErrorR#t__doc__Rt__dict__tupdate(
R(R!R,tkwargsR%R&R'R0tdocR((R.R!R/sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt__call__Is8			



			

N(R t
__module__R2RR)R7(((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR$8s
cO`s�|rq|d}|d}d|kr<|jd�|d<nd|kr^|jd�|d<nt||�|�St||�SdS(s�
    Issues a DeprecationWarning, adds warning to `old_name`'s
    docstring, rebinds ``old_name.__name__`` and returns the new
    function object.

    This function may also be used as a decorator.

    Parameters
    ----------
    func : function
        The function to be deprecated.
    old_name : str, optional
        The name of the function to be deprecated. Default is None, in
        which case the name of `func` is used.
    new_name : str, optional
        The new name for the function. Default is None, in which case the
        deprecation message is that `old_name` is deprecated. If given, the
        deprecation message is that `old_name` is deprecated and `new_name`
        should be used instead.
    message : str, optional
        Additional explanation of the deprecation.  Displayed in the
        docstring after the warning.

    Returns
    -------
    old_func : function
        The deprecated function.

    Examples
    --------
    Note that ``olduint`` returns a value after printing Deprecation
    Warning:

    >>> olduint = np.deprecate(np.uint)
    >>> olduint(6)
    /usr/lib/python2.5/site-packages/numpy/lib/utils.py:114:
    DeprecationWarning: uint32 is deprecated
      warnings.warn(str1, DeprecationWarning)
    6

    iitnewnameR&toldnameR%N(tpopR$(R,R5tfn((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyRus.

cC`s
td|�S(NR'(R$(tmsg((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt<lambda>�sc
C`s�|j}|dd}|d}|d}t|�jj}|}}|dkrg||j|7}n]xPt||�D]?\}}	|	dkr�||d|	7}qw||d|	7}qwW||7}||fS(s1
    Returns pointers to the end-points of an array.

    Parameters
    ----------
    a : ndarray
        Input array. It must conform to the Python-side of the array
        interface.

    Returns
    -------
    (low, high) : tuple of 2 integers
        The first integer is the first byte of the array, the second
        integer is just past the last byte of the array.  If `a` is not
        contiguous it will not use every byte between the (`low`, `high`)
        values.

    Examples
    --------
    >>> I = np.eye(2, dtype='f'); I.dtype
    dtype('float32')
    >>> low, high = np.byte_bounds(I)
    >>> high - low == I.size*I.itemsize
    True
    >>> I = np.eye(2, dtype='G'); I.dtype
    dtype('complex192')
    >>> low, high = np.byte_bounds(I)
    >>> high - low == I.size*I.itemsize
    True

    tdataitstridestshapeiN(t__array_interface__RtdtypetitemsizeRtsizetzip(
tataita_datatastridestashapetbytes_ata_lowta_highRAtstride((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR�s 	



c
C`s|dkr'tj�j}|j}ng}i}x�|j�D]�}t||t�r@||}t|�}||j�kr�|d||}d}n|||<|}d}dj	t
t|j��}	t|j
�}
|j||	|
|jj|g�q@q@Wd}d}d}
d}x�tt|��D]�}||}|t|d�krit|d�}n|t|d�kr�t|d�}n|
t|d�kr�t|d�}
n|dr0|t|d�7}q0q0Wt|�dkretd|�}td|�}td|
�}d|d	|d	|d	f}t|d
dt|�dd
�nx�tt|��D]�}||}td
|dd	|t|d�d|dd	|t|d�d|dd	|t|d�d|df�qxWtd|�dS(s%
    Print the Numpy arrays in the given dictionary.

    If there is no dictionary passed in or `vardict` is None then returns
    Numpy arrays in the globals() dictionary (all Numpy arrays in the
    namespace).

    Parameters
    ----------
    vardict : dict, optional
        A dictionary possibly containing ndarrays.  Default is globals().

    Returns
    -------
    out : None
        Returns 'None'.

    Notes
    -----
    Prints out the name, shape, bytes and type of all of the ndarrays
    present in `vardict`.

    Examples
    --------
    >>> a = np.arange(10)
    >>> b = np.ones(20)
    >>> np.who()
    Name            Shape            Bytes            Type
    ===========================================================
    a               10               40               int32
    b               20               160              float64
    Upper bound on total bytes  =       200

    >>> d = {'x': np.arange(2.0), 'y': np.arange(3.0), 'txt': 'Some str',
    ... 'idx':5}
    >>> np.who(d)
    Name            Shape            Bytes            Type
    ===========================================================
    y               3                24               float64
    x               2                16               float64
    Upper bound on total bytes  =       40

    s (%s)iis x iii
sName %s Shape %s Bytes %s Typet s
t=is%s %s %s %s %s %s %sis'
Upper bound on total bytes  =       %dN(Rtsyst	_getframetf_backt	f_globalstkeyst
isinstanceRtidRtmaptstrRAtnbytestappendRCR"trangetlentinttmaxtprint(tvardicttframetstatcacheR"tvartidvtnamestrtoriginaltshapestrtbytestrtmaxnametmaxshapetmaxbytet
totalbytestktvaltsp1tsp2tsp3tprval((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR�s^,
	


'
&  c
C`s�t|�}|}|}d}|j|�}x�|D]�}||krOd}	n|}	|t|�t|	�}||kr�|dt|�}|dd|d|}q4||	|}q4W|S(Ns, tis,
RPi(R^tsplit(
R"t	argumentstwidtht
firstwidthRptnewstrtsepstrtarglisttargumenttaddstr((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt_split_line[s
	RcC`s�t|t�t�g�}i|j|j6}|jg}|jg}x�tr�t|�dkrePn|jd�}xz|j�D]l}t	||t
j�r�||j}||kr�||j}|j|�|j|�|||<q�q�q�WqIW||fS(Ni(
t
__import__tglobalstlocalsR3R tTrueR^R;RVRWttypest
ModuleTypeR\(tmoduletthedicttdictlistt
totraversetthisdicttxtmodnametmoddict((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt
_makenamedictss"	



c
C`sd}d}d�}t|dt|��}t|d|�}|j}|jj}td|d|�td|jd|�td|d|�td	|jd|�td
||jj	�d|�td||jj
�d|�td|jjd|�td
t|j
jj�|fd|�tdddd|�|dkrqtd|tj|fd|�t}	na|dkr�td||fd|�tjdk}	n)td||fd|�tjdk}	td||	�d|�td|jd|�dS(sOProvide information about ndarray obj.

    Parameters
    ----------
    obj: ndarray
        Must be ndarray, not checked.
    output:
        Where printed output goes.

    Notes
    -----
    Copied over from the numarray module prior to its removal.
    Adapted somewhat as only numpy is an option now.

    Called by info.

    RvcS`s|S(N((R�((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR>�st	__class__R sclass: tfilesshape: s	strides: s
itemsize: s	aligned: scontiguous: s	fortran: sdata pointer: %s%ssbyteorder: tendRPt|RQs%s%s%st>s%sbig%stbigs
%slittle%stlittles
byteswap: stype: %sN(R�RQ(tgetattrttypeR@RCt	byteorderRaRARDtflagstalignedt
contiguoustfortranthextctypest_as_parameter_tvalueRRtFalse(
tobjtoutputtextrattictbptclstnmR@tendiantbyteswap((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt_info�s8		 	iLcC`sddl}ddl}t|d�s6t|d�rB|j}nt|d�r]|j}n|dkrvtt�n�t|t�r�t	|d|�nxt|t
�r�tdkr�t|�\aa
nd}g}x�t
D]�}y�t||}	t|	�|krtd|d|�nE|jt|	��td	|d|�t|	�td
|d|�|d7}Wq�tk
r~q�Xq�W|dkr�td|d|�qtd
|d|�nS|j|�rP|j}
tt|��}t|
|�|krt|
||�}n
|
|}td|dd|�t|j|�d|�n�|j|�rX|j}
d}ywt|d�r�tt|jj��}|jd�}
t|
�dkr�d|
d|
d<dj|
d�}q�nWnnXt|
|�|krt|
||�}n
|
|}td|dd|�|j|�}|dkr�t|d�r�t|j|j�d|�q�nt|j|�d|�|j|�}|gkrtdd|�x�|D]{}|ddkr�q�nt||d�}|dk	r4|j |j|�p%d�\}}ntd||fd|�q�Wqn�t!j"ddkrt|t#j$�rtd|j%jd|�td|�t|d�r�tt|j&j��}|jd�}
t|
�dkrd|
d|
d<dj|
d�}nd}t|d�r8d|j'}
nd}
t|
|�|krit|
||�}n
|
|}td|dd|�|j|j&�}|dk	r�t|j|j&�d|�nt|j|�d|�qt|j|�d|�n|j(|�r�|j}
tt|j��}|jd�}
t|
�dkrvd|
d|
d<dj|
d�}nd}t|
|�|kr�t|
||�}n
|
|}td|dd|�t|j|�d|�n+t|d�rt|j|�d|�ndS(s�
    Get help information for a function, class, or module.

    Parameters
    ----------
    object : object or str, optional
        Input object or name to get information about. If `object` is a
        numpy object, its docstring is given. If it is a string, available
        modules are searched for matching objects.  If None, information
        about `info` itself is returned.
    maxwidth : int, optional
        Printing width.
    output : file like object, optional
        File like object that the output is written to, default is
        ``stdout``.  The object has to be opened in 'w' or 'a' mode.
    toplevel : str, optional
        Start search at this level.

    See Also
    --------
    source, lookfor

    Notes
    -----
    When used interactively with an object, ``np.info(obj)`` is equivalent
    to ``help(obj)`` on the Python prompt or ``obj?`` on the IPython
    prompt.

    Examples
    --------
    >>> np.info(np.polyval) # doctest: +SKIP
       polyval(p, x)
         Evaluate the polynomial p at x.
         ...

    When using a string for `object` it is possible to get multiple results.

    >>> np.info('fft') # doctest: +SKIP
         *** Found in numpy ***
    Core FFT routines
    ...
         *** Found in numpy.fft ***
     fft(a, n=None, axis=-1)
    ...
         *** Repeat reference found in numpy.fft.fftpack ***
         *** Total of 3 references found. ***

    iNt_ppimport_importert_ppimport_modulet_ppimport_attrR�s+
     *** Repeat reference found in %s *** R�s     *** Found in %s ***t-isHelp for %s not found.s+
     *** Total of %d references found. ***RPs
s()R)s, t(s

Methods:
t_Rs  %s  --  %sisInstance of class: R7R"s%ss<name>R2()tpydoctinspectthasattrR�R�RRRWRR�RZt	_namedictR�t	_dictlistRXRaR\tKeyErrort
isfunctionR R
R	R^R�tgetdoctisclassR)t__func__RwRt
allmethodsR�tsplitdocRRtversion_infoR�tInstanceTypeR�R7R"tismethod(tobjecttmaxwidthR�ttoplevelR�R�tnumfoundtobjlistRhR�R"RxtargstrR}tdoc1tmethodstmethtthisobjtmethstrtotherR6((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR�s�3





	
	
"
!$

	
cC`sdddl}y:td|j|�d|�t|j|�d|�Wntdd|�nXdS(s�
    Print or write to a file the source code for a Numpy object.

    The source code is only returned for objects written in Python. Many
    functions and classes are defined in C and will therefore not return
    useful information.

    Parameters
    ----------
    object : numpy object
        Input object. This can be any object (function, class, module,
        ...).
    output : file object, optional
        If `output` not supplied then source code is printed to screen
        (sys.stdout).  File object must be created with either write 'w' or
        append 'a' modes.

    See Also
    --------
    lookfor, info

    Examples
    --------
    >>> np.source(np.interp)                        #doctest: +SKIP
    In file: /usr/lib/python2.6/dist-packages/numpy/lib/function_base.py
    def interp(x, xp, fp, left=None, right=None):
        """.... (full docstring printed)"""
        if isinstance(x, (float, int, number)):
            return compiled_interp([x], xp, fp, left, right).item()
        else:
            return compiled_interp(x, xp, fp, left, right)

    The source code is only returned for objects written in Python.

    >>> np.source(np.array)                         #doctest: +SKIP
    Not available for this object.

    iNsIn file: %s
R�sNot available for this object.(R�Rat
getsourcefilet	getsource(R�R�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR�s(s[a-z0-9_]+\(.*[,=].*\)c`s�ddl}t|||��g}t|�j�j���sFdSx��j�D]v\}\}}	}
|	dkrzqSnt}|j�}x$�D]}
|
|kr�t}Pq�q�W|rS|j|�qSqSWidd6dd6dd6dd6���fd	����fd
�}|j	d|�dd
j
��}|dt|�g}x�|ddd�D]�}�|\}}	}g|j�jd�D]}|j�r�|j�^q�}y6|dj�}t
j|�r�|dj�}nWntk
rd}nX|jd||f�q`W|s4|jd�n|dk	rY|jdj
|��nGt|�dkr�|j�}|dj
|��ntdj
|��dS(s�
    Do a keyword search on docstrings.

    A list of of objects that matched the search is displayed,
    sorted by relevance. All given keywords need to be found in the
    docstring for it to be returned as a result, but the order does
    not matter.

    Parameters
    ----------
    what : str
        String containing words to look for.
    module : str or list, optional
        Name of module(s) whose docstrings to go through.
    import_modules : bool, optional
        Whether to import sub-modules in packages. Default is True.
    regenerate : bool, optional
        Whether to re-generate the docstring cache. Default is False.
    output : file-like, optional
        File-like object to write the output to. If omitted, use a pager.

    See Also
    --------
    source, info

    Notes
    -----
    Relevance is determined only roughly, by checking if the keywords occur
    in the function name, at the start of a docstring, etc.

    Examples
    --------
    >>> np.lookfor('binary representation')
    Search results for 'binary representation'
    ------------------------------------------
    numpy.binary_repr
        Return the binary representation of the input number as a string.
    numpy.core.setup_common.long_double_representation
        Given a binary dump as given by GNU od -b, look for long double
    numpy.base_repr
        Return a string representation of a number in the given base system.
    ...

    iNR�R�i�R!tclassi���c`s�d}dj|j�j�jd�d �}|tg�D]}||kr;d^q;�7}|tg�D]}||krjd^qj�7}|t|�d7}|�j|d�7}||jd�d	7}|t|d
d�7}|S(Nis
ii�iii���t.i
idi����(	RtlowertstripRwtsumR^tgettcountR`(R"tdocstrtkindtindextrt	first_doctw(tkind_relevancetwhats(sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt	relevances(//c`s�|�|�S(N((RG(ReR�(sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pytrelevance_valuestkeysSearch results for '%s'RPR�i����s
iRvs	%s
    %ssNothing found.i
(R�R�(R�t_lookfor_generate_cacheRZR�RwtitemsR�R�R\tsortRR^R�t_function_signature_retsearcht
IndexErrorRtwritetgetpagerRa(twhatR�timport_modulest
regenerateR�R�tfoundR"t	docstringR�R�tokR6R�R�tst	help_texttixtlinetdoclinesR�tpager((ReR�R�R�sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR�sV."


cC`sddl}tjddkr2ddlm}nddlm}|dkrWd}nt|t�r�yt|�Wnt	k
r�iSXtj
|}nRt|t�s�t|t�r�i}x'|D]}|j
t|||��q�W|St|�tkr|rtt|�Si}|tt|�<i}d}|j|fg}	x�|	r|	jd�\}
}t|�|kr|qInt|t|�<|d7}d}|j|�rVd}y
|j}
Wntk
r�d}
nX|r@t|d	�r@xP|jD]B}x9tj|�D](}tjj||�}tjj||d
�}tjj|�rn|jd�rn|d }ntjj|�r
|}nq
|d
kr�q
ny
t}Wnt k
r�t!}nXy\tj"}tj#}z0|�t_"|�t_#td|
|f�Wd|t_"|t_#XWq
|k
r4q
q
Xq
Wq�Wnx}t$|�D]\}}y2t%|dd|
|f�}t%|dd�}Wn't k
r�d|
|f}d}nXd|kr�|r�d||f}n|j&|
d�st|t'�rMq2qMn-|j|�p)|
dkp)||
ks2qMn|	j(d|
|f|f�qMWnj|j)|�r�d}xRt$|�D])\}}|	j(d|
|f|f�qxWnt|d�r�d}ny|j*|�}Wnt k
r�d}nX|dk	rI|||f||
<qIqIW|S(s�
    Generate docstring cache for given module.

    Parameters
    ----------
    module : str, None, module
        Module for which to generate docstring cache
    import_modules : bool
        Whether to import sub-modules in packages.
    regenerate : bool
        Re-generate the docstring cache

    Returns
    -------
    cache : dict {obj_full_name: (docstring, kind, index), ...}
        Docstring cache for the module, either cached one (regenerate=False)
        or newly generated.

    iNi(tStringIORiR�R�t__path__s__init__.pys.pyi����R)s%s.%sR R8R�R�R7R!(+R�RRR�tioR�RRWRZR�tImportErrortmodulestlistttupleR4R�RXt_lookfor_cachesR R;R�tismodulet__all__R1R�R�RtlistdirRRtisfiletendswitht
BaseExceptiont	NameErrort	Exceptiontstdouttstderrt_getmembersR�t
startswithRR\R�R�(R�R�R�R�R�RetmodtseenR�tstackR"titemR�t_alltpthtmod_pathtthis_pytinit_pyt	to_importtbase_exct
old_stdoutt
old_stderrtntvt	item_nametmod_nameR6((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR�@s�	

	




	


			


'$$	

cC`stddl}y|j|�}WnNtk
rogt|�D]*}t||�r<|t||�f^q<}nX|S(Ni(R�t
getmembersRtdirR�R�(R
R�tmembersR�((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR�s
.tSafeEvalcB`s�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�ZRS(s�
    Object to evaluate constant string expressions.

    This includes strings with lists, dicts and tuples using the abstract
    syntax tree created by ``compiler.parse``.

    .. deprecated:: 1.10.0

    See Also
    --------
    safe_eval

    cC`stjdt�dS(Ns3SafeEval is deprecated in 1.10 and will be removed.(R/R*R+(R(((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR)�s	cC`s/|j}t|d|j|j�}||�S(Ntvisit(R�R�R tdefault(R(tnodeR�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR�s	cC`std|j��dS(Ns Unsupported source construct: %s(tSyntaxErrorR�(R(R!((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR scC`s|j|j�S(N(Rtbody(R(R!((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pytvisitExpressionscC`s|jS(N(R(R(R!((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pytvisitNum	scC`s|jS(N(R�(R(R!((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pytvisitStrscC`s|jS(N(R�(R(R!((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt
visitBytesscK`sJtgt|j|j�D]*\}}|j|�|j|�f^q�S(N(tdictRFRVtvaluesR(R(R!tkwRpR((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt	visitDictscC`s)tg|jD]}|j|�^q
�S(N(R�teltsR(R(R!ti((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt
visitTuplescC`s#g|jD]}|j|�^q
S(N(R,R(R(R!R-((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt	visitListscC`soddl}t|j|j�r2|j|j�
St|j|j�rX|j|j�Std|j��dS(NisUnknown unary op: %r(tastRWtoptUAddRtoperandtUSubR"(R(R!R0((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pytvisitUnaryOpscC`sP|jdkrtS|jdkr&tS|jdkr9dStd|j��dS(NR�R�RsUnknown name: %s(RXR�R�RR"(R(R!((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt	visitName%scC`s|jS(N(R�(R(R!((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pytvisitNameConstant/s(R R8R2R)RR R$R%R&R'R+R.R/R5R6R7(((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR�s
													
cC`sddl}|j|�S(s�
    Protected string evaluation.

    Evaluate a string containing a Python literal expression without
    allowing the execution of arbitrary non-literal code.

    Parameters
    ----------
    source : str
        The string to evaluate.

    Returns
    -------
    obj : object
       The result of evaluating `source`.

    Raises
    ------
    SyntaxError
        If the code has invalid Python syntax, or if it contains
        non-literal code.

    Examples
    --------
    >>> np.safe_eval('1')
    1
    >>> np.safe_eval('[1, 2, 3]')
    [1, 2, 3]
    >>> np.safe_eval('{"foo": ("bar", 10.0)}')
    {'foo': ('bar', 10.0)}

    >>> np.safe_eval('import os')
    Traceback (most recent call last):
      ...
    SyntaxError: invalid syntax

    >>> np.safe_eval('open("/home/user/.ssh/id_dsa").read()')
    Traceback (most recent call last):
      ...
    SyntaxError: Unsupported source construct: compiler.ast.CallFunc

    iN(R0tliteral_eval(RR0((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyR3s,(1t
__future__RRRRRRR�treR/tnumpy.core.numerictypesRRRRRRRtnumpy.compatR	R
R�R
R#R�R$RRRRRR�R�R�R�RR�RRR�tcompiletIR�R�R�RR�RRR(((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/utils.pyt<module>sB		=	=		9i	3�3		�	I

Zerion Mini Shell 1.0