24 Mar
2009
24 Mar
'09
4:19 a.m.
Hi guys, I just added a new decorator in r1229. This is the 'run_pdb' decorator, which will drop you to an interactive pdb shell before calling the function that it is applied to. For instance, if I applied it to, say, _is_fully_enclosed inside BaseDataTypes, whenever that function is called I get a pdb prompt. ( http://docs.python.org/library/pdb.html ) This enables FAR easier debugging. (You can do the same thing by inserting pdb.set_trace() at any point in the code, but this way yt will handle the imports for you.) -Matt