KennisbankExamencentrum
NL · NLNederlands (Nederland)
Taal kiezen13

CKTIS / Python

Kennisbank — Python

Syntax, operatoren en programmeerconcepten. Zoek een uitleg, bekijk een voorbeeld en leer verder.

Artikelen: 583

Python

collections.OrderedDict

Bewaart de sleutelvolgorde en kan bestaande items verplaatsen.

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

contextlib.AbstractContextManager

De basisklasse voor synchrone with levert `__enter__`, dat de beheerder teruggeeft.

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

contextlib.aclosing

Omsluit een object met aclose() met een async-with-bereik.

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

contextlib.asynccontextmanager

Maakt van een asynchrone generatorfunctie een fabriek voor async with.

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

contextlib.AsyncExitStack

Stapelt synchrone en asynchrone opruimacties in LIFO-volgorde.

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

contextlib.closing

Maakt with mogelijk voor een bron met synchrone close().

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

contextlib.ContextDecorator

Maakt een beheerder met `__enter__` en `__exit__` bruikbaar als functiedecorator.

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

contextlib.contextmanager

Decoreert een generatorfunctie met één yield als fabriek van eenmalige with-beheerders.

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

contextlib.ExitStack

Beheert een tijdens uitvoering gekozen aantal bronnen.

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

contextlib.nullcontext

Vervangt een optionele contextbeheerder en geeft bij binnenkomst enter_result, standaard None.

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

contextlib.redirect_stderr

Bindt sys.stderr tijdelijk aan een schrijfbaar doel en geeft het via as terug.

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

contextlib.redirect_stdout

Vangt uitvoer van print op door sys.stdout tijdelijk te vervangen.

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

contextlib.suppress

Onderdrukt uitzonderingen van de opgegeven klassen en subklassen en gaat na het blok verder.

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

cProfile.Profile

Een Profile-object verzamelt aanroepstatistieken en runcall geeft de normale uitkomst van de functie.

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

cProfile.run

run profileert opdrachten in de naamruimte van de hoofdmodule.

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

cProfile.runctx

runctx profileert opdrachten met het opgegeven globale woordenboek en de lokale naamtoewijzing.

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

csv.Dialect

Bundelt CSV-opties in een herbruikbaar dialect voor lezen en schrijven.

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

csv.DictReader

Leest records als woordenboeken in kolomvolgorde.

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

csv.DictWriter

Schrijft woordenboeken naar een tekststroom in de volgorde van de vereiste fieldnames.

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

csv.reader

Leest een iterable van tekstregels en levert lijsten van velden.

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

csv.Sniffer

Leidt het dialect af uit een representatief tekstfragment.

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

csv.writer

Schrijft rijen met velden naar een tekststroom met write().

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

dataclasses.asdict

Zet een dataklasse-instantie via dict_factory om in een woordenboek van veldnamen en waarden.

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