six demon bag

Wind, fire, all that kind of thing!


Function for Inspecting (not only) Dictionary-based Data Structures

Dictionary-based data structures are quite handy in various situations. However, when the structures grow, they tend to become messy pretty fast. To deal with this issue I wrote a function DumpData() to inspect a given variable and return a string representation of its data. It can be used either by copy/pasting the code or by importing the script.

DumpData() was inspired by Perl's Data::Dumper module, although my little function is far less sophisticated. Just in case you were wondering.

Posted 14:15 [permalink]