I want to create a list that can only accept certain types. As such, I\'m trying to inherit from a list in Python, and overriding the append() method like so:
instead of self.append(item) use super(TypedList, self).append(item) (see http://docs.python.org/library/functions.html#super)
self.append(item)
super(TypedList, self).append(item)