B
     9-e‹  ã               @   s(   d Z G dd„ deƒZG dd„ deƒZdS )z5
Created on Tue Jul 15 11:01:38 2014

@author: peter
c               @   s   e Zd ZdZdd„ ZdS )Ú	PrintablezS
    print out all attributes of the class
    Foo=foo
    Bar=bar
    Xyz=xyz
    c             C   sª   d}x”| j D ]Š}t| j | tttttttd ƒfƒrJ|d|| j | f 7 }qt	| j | dƒr~|d|| j | j
j| j | f 7 }q|d|d| j | f 7 }qW |d d… d S )NÚ{z%s=%s;
Ú	__class__z%s=@%s@%s;
ZNO_CLASS_NAMEéþÿÿÿÚ})Ú__dict__Ú
isinstanceÚdictÚintÚstrÚlistÚtupleÚfloatÚtypeÚhasattrr   Ú__name__)ÚselfÚansÚct© r   ú¶G:\My Drive\STUDY\EPAT\09 TBP - Trading & Back-testing Platforms\TBP04 - Backtesting & Live Trading\IB IBridgePy API\02 Python 3.7 IBridgePy_Win_Anaconda37_64\BasicPyLib\Printable.pyÚ__str__   s    "$zPrintable.__str__N)r   Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   
   s   r   c               @   s   e Zd ZdZdd„ ZdS )ÚPrintableIIzf
    print out all attributes of the class but put them in one line
    {Foo=foo;Bar=bar;Xyz=xyz}
    c             C   s€   d}xj| j D ]`}t| j | tttttttd ƒfƒrJ|d|| j | f 7 }q|d|| j | j	j
| j | f 7 }qW |d d… d S )Nr   z%s=%s;z
%s=@%s@%s;éÿÿÿÿr   )r   r   r   r	   r
   r   r   r   r   r   r   )r   r   r   r   r   r   r   $   s    "&zPrintableII.__str__N)r   r   r   r   r   r   r   r   r   r      s   r   N)r   Úobjectr   r   r   r   r   r   Ú<module>   s   