__gettribute__ and __getttr__
These are methods that are used to obtain values of class fields (attributes).
__Gettribute__ - is always called when programmers are trying to get an attribute, regardless of whether it is done from the outside or inside the class (self.x).
__Getttr__ - performed only if __Gettribute__ has found nothing. Here you can reduce behavior for non -existent objects.
Having studied the official documentation, I wrote the next simple class Python, which overrights the implementation of the base class and introduced several printing operators with the subsequent challenge of the basic class methods.
And then the use of a class copy is higher, which explains the mechanics of access to attributes.
#machinelearning #artificialintelligence #ai #datascience #programming #Technology #Deeplearning