Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Python

Knowledge base — Python

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 583

Python

abc.ABC

Inheriting from ABC supplies abstract base class machinery through ABCMeta.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

abc.abstractmethod

The decorator marks a member abstract for classes using ABCMeta.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.as_completed

Iterates over tasks as they complete so an early result can be processed without waiting for slower siblings.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.CancelledError

Signals cancellation at an await point so a coroutine can clean up before propagating cancellation.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.create_task

Schedules a coroutine as a task in the running event loop and returns a handle to its result.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.Event

Shares a Boolean signal between coroutines; waiting tasks resume when the signal is set.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.Future

Represents one eventual result or exception that can be awaited by multiple callers.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.gather

Runs awaitables concurrently and collects their results in input order.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.Lock

Allows only one coroutine at a time into a critical section guarded by the same asynchronous lock.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.Queue

Provides first-in, first-out handoff between asynchronous producers and consumers.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.run

Creates and manages an event loop for a top-level asynchronous computation and returns its result.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.Semaphore

Restricts concurrent access using a counter of available permits.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.shield

Protects an underlying task from cancellation requested through the shielding awaitable.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.sleep

Suspends the current task for a delay and optionally supplies a result when it resumes.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.Task

Wraps a coroutine in a scheduled awaitable with result, status and cancellation controls.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.TaskGroup

Manages related asynchronous tasks in a scope that waits for every member when it exits.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.timeout

Applies a deadline to awaits inside an asynchronous context manager.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.wait

Waits for a collection of tasks and returns separate sets of finished and pending tasks.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

asyncio.wait_for

Awaits one operation with a timeout and returns its result on success.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

collections.ChainMap

Searches layered mappings from first to last, using the first available binding.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

collections.Counter

Maps hashable observations to their counts, including explicitly stored zero or negative counts.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

collections.defaultdict

Creates a missing value by calling the factory when a key is accessed by subscription.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

collections.deque

Maintains efficient insertions and removals at both ends of a double-ended queue.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

collections.namedtuple

Generates a tuple subclass with named fields and positional tuple behavior.

Intermediate · Python 3.14; repository image, production runtime not attested