Skip to content

Instantly share code, notes, and snippets.

@eugeniabahit
eugeniabahit / printr.py
Created September 9, 2012 21:49
Módulo Python que emula la función print_r() de PHP, para imprimir las propiedades de un objeto de forma recursiva
# -*- coding: utf-8 -*-
"""
printr is a module that allows to emulate the print_r() function of PHP by
printing the objects properties of a class instance and its internal
structure
Use:
You must get an object of a class instance and then, you can call to
the printr function