[pyar] Imprimir propiedades de una instancia de clase en forma recursiva y de forma humanamente legible

Mariano Garcia Berrotarán garcia.berrotaran en gmail.com
Lun Sep 10 13:16:42 ART 2012


2012/9/10 Facundo Batista <facundobatista en gmail.com>:
>>>> isinstance("foobar", (str, int, float, long, set, list, tuple, dict))
> True
>>>> isinstance(123, (str, int, float, long, set, list, tuple, dict))
> True
>>>> isinstance(object(), (str, int, float, long, set, list, tuple, dict))
> False

Mira vos, no sabia eso. Gracias Facu!

-- 
Mariano García Berrotarán



More information about the pyar mailing list