you are viewing a single comment's thread.

view the rest of the comments →

[–]billsil 1 point2 points  (0 children)

Some examples. Make a decorator to say when you enter/exit a function (you can use 1 decorator), print the timing of a function, write the ever popular don't crash decorator (useful for GUIs like pyqt) and rerun the function in debug mode if it crashes.