djangosnippets.org: Latest snippets tagged with 'print_r'https://djangosnippets.org/tags/print_r/2012-06-19T10:32:04.380611-05:00TreePrint: Print nested lists, tuples, dicts
2012-06-19T10:32:04.380611-05:00michaeljtbrookshttps://djangosnippets.org/snippets/2773/<p>Displays nested lists / dicts / tuples in an aligned hierarchy to make debugging easy. Accepts all variable types, including nested lists with any mixture of tuples / dictionaries / lists / numbers / strings.</p>
<p>Analogous to the PHP print_r($var) function.</p>
Freely redistributable