User:Mstone/Tricks: Difference between revisions

From OLPC
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 9: Line 9:


See [http://dev.laptop.org/git?p=projects/mocktools;a=blob;f=trac_helper.py;hb=HEAD trac_helper.py]
See [http://dev.laptop.org/git?p=projects/mocktools;a=blob;f=trac_helper.py;hb=HEAD trac_helper.py]

==== Pythonic relations ====

See [http://dev.laptop.org/git/users/mstone/relation] and [http://alloy.mit.edu] (which was my inspiration, though I've made nothing more than a poor knockoff).


==== Relational error logging ====
==== Relational error logging ====

Revision as of 00:39, 24 September 2008

Verbose Python Tracebacks

 nice_traces.py
 from nice_traces import trace
 # sys.excepthook now is set to trace by the import
 # also, trace(sys.exc_info()) can be used for more controlled handling

Handy report() function

 See trac_helper.py

Pythonic relations

 See [1] and [2] (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 [3] 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