Base di conoscenzaCentro esami
ITItaliano
Scegli la lingua13

CKTIS / Python

Base di conoscenza — Python

Sintassi, operatori e concetti di programmazione. Trova una spiegazione, consulta un esempio e torna a imparare.

Voci: 583

Python

abc.ABC

Ereditare da ABC fornisce i meccanismi per classi astratte di ABCMeta.

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

abc.abstractmethod

Il decoratore contrassegna un membro astratto nelle classi che usano ABCMeta.

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

asyncio.as_completed

Elabora i risultati in ordine di completamento.

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

asyncio.CancelledError

Segnala l’annullamento alla prossima occasione di riprendere il task dopo cancel().

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

asyncio.create_task

Pianifica una coroutine nel ciclo attivo e restituisce un task.

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

asyncio.Event

Segnala la disponibilità a più task del ciclo tramite un indicatore inizialmente disattivato.

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

asyncio.Future

Collega il completamento tramite callback ad await con un oggetto creato dal ciclo.

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

asyncio.gather

Esegue coroutine in concorrenza e dopo await fornisce una lista nell’ordine degli argomenti.

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

asyncio.Lock

Un Lock condiviso riserva una risorsa a un solo task del ciclo asyncio alla volta.

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

asyncio.Queue

Passa elementi tra task in ordine FIFO.

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

asyncio.run

Avvia codice asincrono da un punto d’ingresso sincrono e restituisce il risultato.

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

asyncio.Semaphore

Limita gli utenti contemporanei di una risorsa con un contatore di permessi.

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

asyncio.shield

Protegge il task dall’annullamento trasmesso tramite l’involucro.

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

asyncio.sleep

Sospende il task corrente per il ritardo in secondi e lascia il ciclo eseguire altro lavoro.

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

asyncio.Task

Rappresenta una coroutine eseguita cooperativamente dal ciclo.

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

asyncio.TaskGroup

Raggruppa i task creati con group.create_task in un ambito.

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

asyncio.timeout

Limita la durata di un blocco di attese nel task corrente.

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

asyncio.wait

Riceve una raccolta non vuota di task o Future.

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

asyncio.wait_for

Attende un’operazione con limite in secondi o indefinitamente con None.

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

collections.ChainMap

Riunisce più mapping in una vista comune delle impostazioni.

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

collections.Counter

Conta le occorrenze di elementi utilizzabili come chiavi oppure inizializza i conteggi da un mapping.

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

collections.defaultdict

Crea un dizionario utile per raggruppare valori per chiave.

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

collections.deque

Gestisce una coda con inserimenti ed estrazioni ai due estremi a costo approssimativamente costante.

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

collections.namedtuple

Crea una sottoclasse di tuple con campi accessibili per nome o posizione.

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