Current File : //usr/lib64/python2.7/site-packages/numpy/testing/print_coercion_tables.pyo
�
E�`Qc@sdZddlZdefd��YZd�Zed�ZdGHeejd�Hd	GHHd
GHeejddde�HdGHeejddde�Hd
GHeejddde	�HdGHeejddde	�HdGHeejdddee	�dS(s8Prints type-coercion tables for the built-in NumPy typesi����Nt
GenericObjectcBs2eZd�Zd�Zd�Zejd�ZRS(cCs
||_dS(N(tv(tselfR((sI/usr/lib64/python2.7/site-packages/numpy/testing/print_coercion_tables.pyt__init__scCs|S(N((Rtother((sI/usr/lib64/python2.7/site-packages/numpy/testing/print_coercion_tables.pyt__add__scCs|S(N((RR((sI/usr/lib64/python2.7/site-packages/numpy/testing/print_coercion_tables.pyt__radd__stO(t__name__t
__module__RRRtnptdtype(((sI/usr/lib64/python2.7/site-packages/numpy/testing/print_coercion_tables.pyRs			cCs[dGx|D]
}|GqWHx:|D]2}|Gx$|D]}ttj||��Gq2WHq!WdS(NtX(tintR
tcan_cast(tntypestchartrowtcol((sI/usr/lib64/python2.7/site-packages/numpy/testing/print_coercion_tables.pytprint_cancast_tables


c
Cs�dGx|D]
}|GqWHxh|D]`}|dkr<t}ntj|�}|Gx.|D]&}|dkrqt}	ntj|�}	y�|r�tj||�gd|�}
n||�}
|	|�}|r�tj|
j|j�j}nKtj|
|�}t|tj	�r|jj}ntjt
|��j}WnCtk
rKd}n-tk
rad}nt
k
rwd}nX|GqVWHq!WdS(Nt+RRt!t@t#(RR
t
obj2sctypetarrayt
promote_typesRRtaddt
isinstancetndarrayttypet
ValueErrort
OverflowErrort	TypeError(
Rtinputfirstvaluetinputsecondvaluet
firstarraytuse_promote_typesRRtrowtypeRtcoltypetrowvaluetcolvaluetvalue((sI/usr/lib64/python2.7/site-packages/numpy/testing/print_coercion_tables.pytprint_coercion_tables@

	
	!
	
	

scan casttAllsJIn these tables, ValueError is '!', OverflowError is '@', TypeError is '#'sscalar + scalarisscalar + neg scalarsarray + scalarsarray + neg scalarR(
t__doc__tnumpyR
tobjectRRtFalseR+t	typecodestTrue(((sI/usr/lib64/python2.7/site-packages/numpy/testing/print_coercion_tables.pyt<module>s.	
'