37 matching pages, found in 2146 ms

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

  1. 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
  2. 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
  3. 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
  4. 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
  5. peps.python.orghttps://peps.python.org › pep-0313
    More about peps.python.org
    PEP 313 – Adding Roman Numeral Literals to Python | peps.python.org

    … may appear immediately to the left of the single V, followed by no Is, and adds 4 to the value of the literal. A single I may likewise appear before the last …

    0 points
  6. peps.python.orghttps://peps.python.org › pep-0645
    More about peps.python.org
    PEP 645 – Allow writing optional types as x? | peps.python.org

    … in isinstance and issubclass , the new optional syntax should be supported in both isinstance and issubclass , isinstance(1, int?) # true issubclass(Child, Super?) # true A new dunder method will need to be …

    0 points
  7. 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
  8. 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
  9. 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
  10. peps.python.orghttps://peps.python.org › pep-0780 › appendix-tool-behavior-unknown…
    More about peps.python.org
    Appendix: Compatibility behavior in existing tools | peps.python.org

    … 2021. The reporter quoted the marker-stripping code and questioned whether warning instead of raising could have consequences. Closing the issue did not remove that recovery policy. Poetry #7729 reported a parsing …

    0 points

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