37 matching pages, found in 144 ms

Ask StyxWritten on your GPU machine; takes a few seconds the first time.

  1. peps.python.orghttps://peps.python.org › pep-0367
    More about peps.python.org
    PEP 367 – New Super | 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 …

    0 points
  2. peps.python.orghttps://peps.python.org › pep-3135
    More about peps.python.org
    PEP 3135 – New Super | 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 …

    0 points
  3. peps.python.orghttps://peps.python.org › pep-3130
    More about peps.python.org
    PEP 3130 – Access to Current Module/Class/Function | 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 …

    0 points
  4. peps.python.orghttps://peps.python.org › pep-0447
    More about peps.python.org
    PEP 447 – Add __getdescriptor__ method to metaclass | 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 …

    0 points
  5. peps.python.orghttps://peps.python.org › pep-0487
    More about peps.python.org
    PEP 487 – Simpler customisation of class creation | 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 …

    0 points
  6. peps.python.orghttps://peps.python.org › pep-0422
    More about peps.python.org
    PEP 422 – Simpler customisation of class creation | 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 …

    0 points
  7. peps.python.orghttps://peps.python.org › pep-0359
    More about peps.python.org
    PEP 359 – The “make” Statement | 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 …

    0 points
  8. peps.python.orghttps://peps.python.org › pep-0767
    More about peps.python.org
    PEP 767 – Annotating Read-Only Attributes | 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 …

    0 points
  9. peps.python.orghttps://peps.python.org › pep-0482
    More about peps.python.org
    PEP 482 – Literature Overview for Type Hints | 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 …

    0 points
  10. peps.python.orghttps://peps.python.org › pep-0316
    More about peps.python.org
    PEP 316 – Programming by Contract for Python | 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 …

    0 points

Search for “super site:peps.python.org” on Google, or add !ddg, !w and other shortcuts to any search.