Re: [Tutor] Need to call a custom/magic method on calling of every Class methods

2015-12-17 Thread Sunil Tech
Oh! Thank you so much Steven for the reply. On Thu, Dec 17, 2015 at 7:03 PM, Steven D'Aprano wrote: > On Thu, Dec 17, 2015 at 05:18:26PM +0530, Sunil Tech wrote: > > Hi Tutor, > > > > I am searching for any magic method/or any method that calls on every > > calling of the Class methods. > [...]

Re: [Tutor] Need to call a custom/magic method on calling of every Class methods

2015-12-17 Thread Steven D'Aprano
On Thu, Dec 17, 2015 at 05:18:26PM +0530, Sunil Tech wrote: > Hi Tutor, > > I am searching for any magic method/or any method that calls on every > calling of the Class methods. [...] > Is there any magic method that is auto called on every call of these Class > Methods? No, not really, but you c

[Tutor] Need to call a custom/magic method on calling of every Class methods

2015-12-17 Thread Sunil Tech
Hi Tutor, I am searching for any magic method/or any method that calls on every calling of the Class methods. for example: Class A(object): def one(self): return def two(self): return I need a method that prints which method is called in this class. I am aware of __call