Reading List
Python tip: create a class dynamically. from Ru Singh RSS feed.
Python tip: create a class dynamically.
Been looking through a Django snippet lately and had to make sense of it all. A line by line analysis eventually lead to me an interesting discovery: you can create classes programmatically. Well, also, I learned a lot more, but this particularly seems worth mentioning. The built-in function type that tells you what an object’s type is? Call that function ... Continue reading →