property()
Exposes a method as a managed attribute read on an instance.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Exposes a method as a managed attribute read on an instance.
range represents an immutable sequence of integers. It stores bounds and a step rather than keeping every individual value in memory.
Requests a representation suitable for inspection or debugging.
Returns an iterator over a reversible object in reverse order.
Rounds a number to the requested decimal position, or returns the nearest integer when the position is omitted.
Collects distinct hashable values into a mutable set.
Assigns an attribute whose name is supplied as a string.
Represents the bounds and step of a subsequence selection as an object.
Builds a new sorted list from the members of an iterable.
Stores a function on a class without binding the instance or class as an implicit first argument.
str creates a Unicode string. Converting a number to text does not perform arithmetic, and turning bytes into text requires a deliberate choice of encoding.
Accumulates numeric input starting at the supplied initial value.
Obtains a proxy that continues attribute lookup after the current class in the method resolution order.
Collects successive values into an immutable ordered sequence.
Returns the actual type of a runtime object.
Returns the attribute dictionary of an object that provides one.
Groups parallel items from multiple iterables into tuples.
Bind a name according to the surrounding statement.
Test a debugging invariant with a truth test when `__debug__` is true.
An async def without yield creates a coroutine function whose call returns a coroutine object without executing the body.
Inside a coroutine or asynchronous generator, obtain the result or exception of an awaitable.
Exit the innermost enclosing loop and skip that loop’s else suite.
Select a match arm by testing its pattern before its optional guard.
The class body runs immediately in a new namespace and the name receives the result of applying decorators, which can replace the class.