U
    fª/ex  ã                   @   s4   d dl mZ d dlZd dlmZ dd„ Zdd„ ZdS )é    )ÚreduceN)Ú
get_optionc                 C   s"   t | tjtfƒr|  tdƒ¡} | S )z3
    If we have bytes, decode them to unicode.
    zdisplay.encoding)Ú
isinstanceÚnpZbytes_ÚbytesÚdecoder   )Ús© r	   úB/tmp/pip-unpacked-wheel-tiezk1ph/pandas/core/computation/common.pyÚensure_decoded   s    r   c                  G   s2   zt j| Ž W S  tk
r,   tt j| ƒ Y S X dS )zc
    Wrapper around numpy.result_type which overcomes the NPY_MAXARGS (32)
    argument limit.
    N)r   Zresult_typeÚ
ValueErrorr   )Zarrays_and_dtypesr	   r	   r
   Úresult_type_many   s    r   )Ú	functoolsr   Znumpyr   Zpandas._configr   r   r   r	   r	   r	   r
   Ú<module>   s   	