Python Modules

Improved autosuper 0.9.6

autosuper.zip

An improved (read much faster, documented, with tests and benchmarks) version of my improved autosuper Python Cookbook recipe. Includes a Pyrex implementation that is about twice the speed of the pure Python version.

Depending on usage patterns, calling self.super tends to be 3 to 5 times slower than calling super(cls, self) for the Python version, and 1 to 3 times slower for the Pyrex version. The greatest performance improvement is seen when self.super is called multiple times in a single function. The unit tests include some benchmarks.

License: BSD-style.

Changes

0.9.6: Download
Minor bugfix (passing parameters through autosuper.__init__). Very minor performance improvements.

0.9.5:
Performance improvements now also available for Python 2.2.

0.9.4:
Large performance improvements in both the Python and Pyrex versions for Python 2.3 and later.

0.9.3: Download
Works with all versions of Python 2.2 and higher.