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