Re: Question about the @staticmethod decorator

2019-03-18 Thread Terry Reedy
On 3/17/2019 2:15 PM, Arup Rakshit wrote: I am reading a book where the author says that: In principle, it would also be possible to implement any @staticmethod completely outside of the class at module scope without any loss of functionality — so you may want to consider carefully whether a p

Re: Question about the @staticmethod decorator

2019-03-17 Thread Cameron Simpson
On 17Mar2019 20:24, Paul Moore wrote: On Sun, 17 Mar 2019 at 18:18, Arup Rakshit wrote: I am reading a book where the author says that: In principle, it would also be possible to implement any @staticmethod completely outside of the class at module scope without any loss of functionality —

Re: Question about the @staticmethod decorator

2019-03-17 Thread Paul Moore
On Sun, 17 Mar 2019 at 18:18, Arup Rakshit wrote: > > I am reading a book where the author says that: > > In principle, it would also be possible to implement any @staticmethod > completely outside of the class at module scope without any loss of > functionality — so you may want to consider car

Question about the @staticmethod decorator

2019-03-17 Thread Arup Rakshit
I am reading a book where the author says that: In principle, it would also be possible to implement any @staticmethod completely outside of the class at module scope without any loss of functionality — so you may want to consider carefully whether a particular function should be a module scope