Adding a method to an existing object instance in Python

How do I add a method to an existing object (i.e., not in the class definition) in Python?

I understand that it's not generally considered good practice to do so, except in some cases.

← Назад к списку