User:Mstone/Tricks

From OLPC
< User:Mstone
Revision as of 20:41, 23 September 2008 by Mstone (talk | contribs)
Jump to: navigation, search

Verbose Python Tracebacks

Just import nice_traces; if you're feeling fancy, then consider trace(sys.exc_info())

Handy report() function

See trac_helper.py

Pythonic relations

See my relation module and Alloy (which was my inspiration, though I've made nothing more than a poor knockoff).

Relational error logging

See trac_helper.py and collect-pkgs.py.

Email-based error reporting

See email_warnings.py.

RPM Makefiles

See rpm-packaging as well as individual projects like [1] along with my Fedora packaging bibliography.

pymeta parser-based controllers

See triagebot for cute tricks.

Python GDB Macros

http://wiki.python.org/moin/DebuggingWithGdb

Tree-based python context management

puritan's main.py