Intermediate Python: Pythonic file searches
Tips on writing more pythonic code, using searching in a file as an example
0 commentsSave Tags: python
Extending Python with C: A case study
This article describes getting a near-100x speedup with a C extension module that took about 1 hour to write. The module source and Windows binaries... more »
0 commentsSave Tags: c-and-cpp, python
Fuzzy substring matching
This article describes how to use a modification of the Levenshtein distance algorithm to do fuzzy substring matching. A Python implementation is... more »
0 commentsSave Tags: python
The benefits of unit testing
I eventually found that it was well worth the initial pain to set up unit testing, and that unit testing actually allows me to develop more reliable... more »
0 commentsSave Tags: methodology, opinion
Clumsy regex syntax in Python is a feature
A common complaint about Python is that its regular-expression syntax is clumsy compared to some other languages. But actually, library support rather... more »
2 commentsSave Tags: opinion, python
Six GoF design patterns, Python style
Example Python implementations of six Gang of Four design patterns: iterator, decorator, abstract factory, factory, state, and template
0 commentsSave Tags: python