37 matching pages, found in 144 ms
Ask StyxWritten on your GPU machine; takes a few seconds the first time.
-
peps.python.orghttps://peps.python.org › pep-0367PEP 367 – New Super | peps.python.org
More about peps.python.org
… Changes Dynamic attribute on super type super(__this_class__, self) self.__super__.foo(*args) super(self, *args) or __super__(self, *args) super.foo(self, *args) super or super() super(*p, **kw) History References …
-
peps.python.orghttps://peps.python.org › pep-3135PEP 3135 – New Super | peps.python.org
More about peps.python.org
… object to use Should super actually become a keyword? super used with __call__ attributes Alternative Proposals No Changes Dynamic attribute on super type self.__super__.foo(*args) super(self, *args) or __super …
-
peps.python.orghttps://peps.python.org › pep-3130PEP 3130 – Access to Current Module/Class/Function | peps.python.org
More about peps.python.org
… B ): def meth ( self ): super ( __class__ , self ) . meth () Note that super calls may be further simplified by the “New Super” PEP (Spealman). The __class__ (or __this_class__ ) attribute came up in attempts …
-
peps.python.orghttps://peps.python.org › pep-0447PEP 447 – Add __getdescriptor__ method to metaclass | peps.python.org
More about peps.python.org
… Pybench Alternative proposals __getattribute_super__ Reuse tp_getattro Alternative placement of the new method History Discussion threads References Copyright Abstract Currently object.__getattribute__ and super.__getattribute__ peek in the __dict__ of classes …
-
peps.python.orghttps://peps.python.org › pep-0487PEP 487 – Simpler customisation of class creation | peps.python.org
More about peps.python.org
… kwargs ): ... cls . swallow = swallow ... super () . __init_subclass__ ( ** kwargs ) >>> class Quest ( QuestBase , swallow = "african" ): ... pass >>> Quest . swallow 'african' The base class object contains an empty __init_subclass__ method which serves as an endpoint …
-
peps.python.orghttps://peps.python.org › pep-0422PEP 422 – Simpler customisation of class creation | peps.python.org
More about peps.python.org
… two argument form of super() cannot be used to call methods (e.g., super(Example, cls) wouldn’t work in the example above). However, the zero argument form of super() works as expected, since …
-
peps.python.orghttps://peps.python.org › pep-0359PEP 359 – The “make” Statement | peps.python.org
More about peps.python.org
PEP 359 – The “make” Statement PEP 359 – The “make” Statement Author : Steven Bethard <steven.bethard at gmail.com> Status : Withdrawn Type : Standards Track Created : 05-Apr-2006 Python-Version : 2.6 Post-History : 05-Apr …
-
peps.python.orghttps://peps.python.org › pep-0767PEP 767 – Annotating Read-Only Attributes | peps.python.org
More about peps.python.org
PEP 767 – Annotating Read-Only Attributes PEP 767 – Annotating Read-Only Attributes Author : Łukasz Modzelewski Sponsor : Carl Meyer <carl at oddbird.net> Discussions-To : Discourse thread Status : Draft Type : Standards Track Topic : Typing …
-
peps.python.orghttps://peps.python.org › pep-0482PEP 482 – Literature Overview for Type Hints | peps.python.org
More about peps.python.org
… type : String , side : String ){ super ( type , true ); _side = side ; } public override function clone (): Event { return new BounceEvent ( type , _side ); } } } Dart Dart is a class-based, single inheritance, object-oriented language with C …
-
peps.python.orghttps://peps.python.org › pep-0316PEP 316 – Programming by Contract for Python | peps.python.org
More about peps.python.org
PEP 316 – Programming by Contract for Python PEP 316 – Programming by Contract for Python Author : Terence Way <terry at wayforward.net> Status : Deferred Type : Standards Track Created : 02-May-2003 Post-History : Table …
Search for “super site:peps.python.org” on Google, or add !ddg, !w and other shortcuts to any search.