Your IP : 216.73.216.196
B
���X� � @ s$ d dl mZmZ d dlZdd� ZdS )� )�
getargspec�ismethodNc s� t | �\}}}}| j}i � g �� ��fdd��� �fdd��t| �rZ| jdk rZ| jf| }t|�}|t|� } t|�}
|r�t|�nd}x t||�D ]\}}
�||
� q�W |r�||
krΈ||||
d� � n
�|d� n�d|
k r�|k �r$n n0td||�rd nd
|
|
dk�rdnd
| f ��n>|
dk�rb| �rb|�rR|�rbtd|| f ��ntd|| f ��xP|D ]H}t|t��rh||k�rh�|��r�td||f ��n�||� |�� �qhW |�r�x6t|| d� |�D ]\}}
�|��sЈ||
� �q�W |�r�||� n>|�rBt
t|��}t|t��r2|�
t�� d�}td||f ��|
t�fdd�|D �� }|�r�|
| }td||�rzdnd
||dk�r�dnd
| f ��� S )z�Get the mapping of arguments to values.
A dict is returned, with keys the function argument names (including the
names of the * and ** arguments, if any), and values the respective bound
values from 'positional' and 'named'.c s� t | t�r|� | <