The factory pattern in Python with __new__
Python’s __new__ function allows you to implement the factory pattern in a nice elegant syntax.
Python’s __new__ function allows you to implement the factory pattern in a nice elegant syntax.
So, I’ve finally got round to joining the machine readable party that is the semantic web.
I wrote a simple little git pre-comit hook today (inspired by Cosmin Stejerean’s hook).
It gets a list of directories from a git config setting tests.directories and runs nosetests against all directories.