Python Class Methods
Just a short reminder how to easily create class methods in python. Useful for creating factory methods that return the instance of a certain class.
This in fact works quite fine except for one thing:
Python method are first class objects, if you have die above in a module named foo.py you will need the following code:
Quite a lot of typing, you may want to consider the following:
A lot less to type isn't it?
To get that working just create a module that looks like this: