Pythonsys.stdout è il flusso di testo di Python per l’output standard, usato per impostazione predefinita da print(). Consente di scrivere testo direttamente e svuotare il buffer; non è detto che punti a un terminale.
Base · Python 3.14; repository image, production runtime not attestedPythonrepeat restituisce una lista di durate nell’ordine delle prove.
Intermedio · Python 3.14; repository image, production runtime not attestedPythontimeit misura la durata complessiva di number esecuzioni di un’istruzione o di una funzione senza argomenti.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonTimer conserva l’istruzione e la preparazione come testo o funzioni senza argomenti.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonQuesto attributo di classe dà il nome semplice del tipo senza modulo né classi esterne.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonAssocia metadati ordinati a un tipo di base.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonIndica un valore dal tipo dinamico.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonDescrive un oggetto invocabile tramite i tipi degli argomenti e del risultato.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonIndica al verificatore il tipo presunto di un’espressione.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonSegnala un attributo di classe la cui assegnazione tramite un’istanza viene contestata dal verificatore.
Intermedio · Python 3.14; repository image, production runtime not attestedPythontyping.Dict descrive i tipi delle chiavi e dei valori di un dizionario. Da Python 3.9 è un alias deprecato di dict; nel nuovo codice usa dict[K, V]. L’annotazione non convalida i dati durante l’esecuzione.
Base · Python 3.14; repository image, production runtime not attestedPythonDichiara un nome che il verificatore non consente di riassegnare o ridefinire in una sottoclasse.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonLa base Generic[T] dichiara una classe con una variabile di tipo T creata in precedenza.
Intermedio · Python 3.14; repository image, production runtime not attestedPythontyping.List[T] descrive una lista di elementi di tipo T. È ancora disponibile in Python 3.14, ma nel nuovo codice è preferibile usare list[T].
Base · Python 3.14; repository image, production runtime not attestedPythonLimita un tipo statico a determinati valori letterali.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonCrea una sottoclasse immutabile di tuple con campi nominati e annotati accessibili anche per indice o scomposizione.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonIl tipo vuoto non possiede alcun valore possibile.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonCrea un sottotipo statico distinto, ad esempio per un identificatore basato su int.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonConsente di omettere una chiave specifica di TypedDict anche se le altre sono obbligatorie per impostazione predefinita.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonAmmette un valore di tipo T oppure None come l’unione dei due tipi.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonDichiara per il verificatore relazioni alternative fra tipi di argomenti e risultato.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonCattura i parametri affinché un decoratore conservi per il verificatore le regole posizionali e per parola chiave.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonDescrive un’interfaccia strutturale per l’analisi statica.
Intermedio · Python 3.14; repository image, production runtime not attestedPythonRende obbligatoria una chiave di TypedDict anche con total=False.
Intermedio · Python 3.14; repository image, production runtime not attested