37 matching pages, found in 347 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
… 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 …
-
peps.python.orghttps://peps.python.org › pep-3135PEP 3135 – New Super | peps.python.org
More about 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 …
-
peps.python.orghttps://peps.python.org › pep-3130PEP 3130 – Access to Current Module/Class/Function | peps.python.org
More about 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 …
-
peps.python.orghttps://peps.python.org › pep-0447PEP 447 – Add __getdescriptor__ method to metaclass | peps.python.org
More about 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 …
-
peps.python.orghttps://peps.python.org › pep-0487PEP 487 – Simpler customisation of class creation | peps.python.org
More about 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 …
-
peps.python.orghttps://peps.python.org › pep-0422PEP 422 – Simpler customisation of class creation | peps.python.org
More about 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 …
-
peps.python.orghttps://peps.python.org › pep-0359PEP 359 – The “make” Statement | peps.python.org
More about 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 …
-
peps.python.orghttps://peps.python.org › pep-0767PEP 767 – Annotating Read-Only Attributes | peps.python.org
More about 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 …
-
peps.python.orghttps://peps.python.orgPEP 0 – Index of Python Enhancement Proposals (PEPs) | peps.python.org
More about 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 …
-
peps.python.orghttps://peps.python.org › pep-0482PEP 482 – Literature Overview for Type Hints | peps.python.org
More about 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 …
Search for “The Super site:peps.python.org” on Google, or add !ddg, !w and other shortcuts to any search.