Python examples / recipes / howto's
This is my OLD blog. I've copied this post over to my NEW blog at:
http://www.saltycrane.com/blog/2008/01/python-examples-recipes-howtos/
You should be redirected in 2 seconds.
finditer regular expression examples
- How to remove C style comments using Python (posted 11/28/2007)
- Using Python's finditer to highlight search items (posted 10/16/2007)
- Using Python's finditer for Lexical Analysis (posted 10/16/2007)
- Python finditer regular expression example (posted 10/03/2007)
dict and list examples
- How to use Python's enumerate and zip to iterate over two lists and their indices. (posted 4/18/2008)
- How to invert a dict in Python (posted 1/14/2008)
- How to find the intersection and union of two lists in Python (posted 1/03/2008)
- Tabular data structure conversion in Python (posted 12/20/2007)
- Iterating through two lists in parallel using zip() (posted 12/19/2007)
- How to convert a dictionary of lists to a list of lists in Python (posted 12/10/2007)
- How to convert a list of dictionaries to a list of lists in Python (posted 12/10/2007)
- How to sort a table by columns in Python (posted 12/05/2007)
- How to copy Python lists or other objects (posted 11/29/2007)
- How to sort a Python dict (dictionary) by keys (posted 9/13/2007)
misc python examples
- Working with files and directories in Python (posted 4/14/2008)
- Notes on Python variable scope (posted 1/09/2008)
- Saving a Python dict to a file using pickle (posted 1/07/2008)
- How to use *args and **kwargs in Python (posted 1/03/2008)
- How to pass command line arguments to your Python program (posted 12/20/2007)
- How to get syntax highlighting in Blogger with Pygments (posted 12/05/2007)
- Python circular buffer (posted 11/29/2007)
- Migrating Excel data to SQLite using Python (posted 11/27/2007)
- python sleep (posted 11/15/2007)
- Relational database introduction with Python and SQLite (posted 11/14/2007)
- How to get current working directory in Python (posted 11/02/2007)
- Python profiling of 2 string concatenation techniques (posted 10/09/2007)
- Python word wrap function (posted 9/21/2007)
- Python os.walk example (posted 3/15/2007)
- How to use python and popen4 to capture stdout and stderr from a command (posted 3/12/2007)
- How to install Easy Install for python (posted 1/10/2007)
matplotlib examples
- How to draw a simple line using python and the matplotlib API - (posted 1/05/2007)
- How to use the pylab API vs. the matplotlib API (posted 1/04/2007)
- How to create some derived arrow classes with matplotlib and python (posted 1/03/2007)
- How to draw an arrow with matplotlib and python (posted 1/02/2007)
- Example pie charts using python and matplotlib (posted 12/19/2006)
Django examples
- Django project #3: Creating models (posted 11/28/2007)
- Django project #2: SQLite setup (posted 11/15/2007)
- Django project #1: Install (posted 11/09/2007)
No comments:
Post a Comment