Hacker News new | ask | show | jobs
by xapata 1854 days ago
Not sure why you'd say that. I redefine things often in Python.
1 comments

What about classes? Can you re-define those?
Not only can you redefine classes, you can change the class an object belongs to. Just point `obj.__class__` at something else, or change `cls.__bases__` to reorganize the class's inheritance hierarchy.
Yes, easily. Just re-execute the class definition code.