In Smalltalk, a message DoesNotUnderstand appears, which is called when the object does not understand the message (this means that the object does not have a message sent).
So, I like to know if python has a function that does the same thing.
In this example:
class MyObject: def __init__(self): print "MyObject created" anObject = MyObject()
So, can I add a method to MyObject so that I can know when DoSomething supposed to be called?
PS: Sorry for my bad english.
function python oop
Lucas Gabriel SΓ‘nchez
source share