itertools.zip_longest
Pairs parallel iterable positions until the longest input ends.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Pairs parallel iterable positions until the longest input ends.
Appends one object at the end of a mutable list.
Removes every element of a list in place.
Creates a shallow copy of the list.
Counts elements that are the supplied object or compare equal to it.
Adds successive members from an iterable to the end of a list.
Finds the first identical or equal element at or after the optional start index.
Inserts an item before the requested position in a mutable list.
Removes and returns the selected list element, defaulting to the last one.
Removes the first element identical or equal to the supplied value.
Reverses the order of a list in place.
Reorders a list in place according to the comparison keys.
Configures the root logger and its output handlers for simple applications.
Emits a record with the critical severity for a serious application failure.
Emits a low-severity diagnostic record, subject to the active logger and handler thresholds.
Logs an error-level record without automatically attaching current exception details.
Logs at error severity and includes the currently handled exception information.
Converts a log record into a line of text using declared record attributes.
Looks up the named logger in the logging registry of the current interpreter.
`logging.Handler.setFormatter` assigns a formatter to a handler or clears it with `None`. It controls output presentation, not the logging level threshold.
Emits an informational record for normal application progress.
logging.INFO is the constant 20, identifying events during normal program operation. Using it as a threshold admits INFO and higher levels, but excludes DEBUG.
A logger receives messages, applies its threshold and sends accepted records to handlers.
LoggerAdapter.info logs an INFO message with adapter context, such as a request identifier. Learn how default extra handling differs from merge_extra=True.