Python notes » History » Version 4
Amber Herold, 09/20/2011 03:12 PM
1 | 1 | Amber Herold | h1. Python notes |
---|---|---|---|
2 | |||
3 | |||
4 | * "Python Style Guide":http://www.python.org/dev/peps/pep-0008/ |
||
5 | * [[Python Coding Standards]] |
||
6 | * http://blog.dispatched.ch/2011/06/12/how-to-become-a-proficient-python-programmer/ |
||
7 | * http://lucumr.pocoo.org/2011/7/9/python-and-pola/ |
||
8 | 2 | Amber Herold | * "clean python code":https://www.ibm.com/developerworks/aix/library/au-cleancode/ |
9 | 3 | Amber Herold | |
10 | h2. Debugging |
||
11 | |||
12 | * print out the stack trace after an exception is caught: |
||
13 | <pre> |
||
14 | 4 | Amber Herold | import traceback |
15 | 3 | Amber Herold | one, two, tb = sys.exc_info() |
16 | traceback.print_tb(tb) |
||
17 | </pre> |