[issue31118] Make super() work with staticmethod by using __class__ for both arguments to super()

2018-05-14 Thread Denis Ryzhkov
Denis Ryzhkov added the comment: Simple explanation: if you call a method of a parent, then you are using class information now, so your child method is not static any more. Please use classmethod decorator and super() with no arguments - it will use cls argument

[issue31118] Make super() work with staticmethod by using __class__ for both arguments to super()

2017-08-19 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the suggestion, but I'm closing this RFE, as there are two strong arguments against it: one related to implementation feasibility, and one related to the nature of what super() *does*. The feasibility argument is that the compiler doesn't even have

[issue31118] Make super() work with staticmethod by using __class__ for both arguments to super()

2017-08-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Do you have a use case? This seems doesn't seem like it would be helpful at all and would make super a little more confusing than it already is. -- nosy: +rhettinger ___ Python tracker

[issue31118] Make super() work with staticmethod by using __class__ for both arguments to super()

2017-08-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ncoghlan ___ Python tracker ___ ___

[issue31118] Make super() work with staticmethod by using __class__ for both arguments to super()

2017-08-04 Thread Ashwini Chaudhary
Changes by Ashwini Chaudhary : -- components: +Interpreter Core ___ Python tracker ___

[issue31118] Make super() work with staticmethod by using __class__ for both arguments to super()

2017-08-04 Thread Ashwini Chaudhary
New submission from Ashwini Chaudhary: >From this question I noticed that super() doesn't work with static methods >with no arguments: https://stackoverflow.com/q/45498675/846892 My question is what's the issue with using __class__ for both arguments to super() in case of static method? Or