The attributes of an object (and its class) are generally stored in a literal dictionary, so it's unlikely that a class will be more performant.
What a class buys you is behavior and a semi-defined interface.
What a class buys you is behavior and a semi-defined interface.
[1] - http://stackoverflow.com/questions/472000/python-slots
Though I'm not sure `__slots__` actually saves any time, as it's really a space optimization. I've tried it before for hot code and even seen very slight (probably not significant) slowdowns.