37 matching pages, found in 347 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

    … is currently acting upon. The premise of the new super usage suggested is as follows: super . foo ( 1 , 2 ) to replace the old: super ( Foo , self ) . foo ( 1 , 2 ) and the current …

    0 points
  2. peps.python.orghttps://peps.python.org › pep-3135
    More about peps.python.org
    PEP 3135 – New Super | peps.python.org

    … dynamic attribute lookup to the super type, which will automatically determine the proper class and instance parameters. Each super attribute lookup identifies these parameters and performs the super lookup on the instance …

    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

    … class__ ) is not quite the same as the __thisclass__ property on bound super objects. The existing super.__thisclass__ property refers to the class from which the Method Resolution Order search begins. In …

    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

    … it possible to remove the custom super and simplifies the implementation because the custom lookup behavior can be added in a central location. Note PyObjC cannot precalculate the contents of the class …

    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

    … 520 . As an example, the first use case looks as follows: >>> class QuestBase : ... # this is implicitly a @classmethod (see below for motivation) ... def __init_subclass__ ( cls , swallow , ** kwargs ): ... cls . swallow = swallow ... super …

    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

    … when __autodecorate__ is called, the name of the class is not yet bound to the new class object. As a consequence, the two argument form of super() cannot be used to call …

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

    … two main options: Turn the module into a package, turn roletypes and format into submodules, and move the attributes to the submodules. Create roletypes and format classes, and move the attributes to …

    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

    … number is not possible - the specification of Final imposes that the name cannot be overridden in subclasses. marking the attribute “_internal”, and exposing it via read-only @property : class Foo : _number : int …

    0 points
  9. peps.python.orghttps://peps.python.org
    More about peps.python.org
    PEP 0 – Index of Python Enhancement Proposals (PEPs) | peps.python.org

    … Introduction This PEP contains the index of all Python Enhancement Proposals, known as PEPs. PEP numbers are assigned by the PEP editors, and once assigned are never changed. The version control history …

    0 points
  10. peps.python.orghttps://peps.python.org › pep-0482
    More about peps.python.org
    PEP 482 – Literature Overview for Type Hints | peps.python.org

    … Siek and Jim Baker (the latter of Jython fame). PyCharm PyCharm by JetBrains has been providing a way to specify and check types for about four years. The type system suggested by …

    0 points

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