← All categoriesExplore the topic

Technology

Software, devices and technical concepts, explained clearly.

319 summariesSorted by title
Technology

Doctest: documentation examples can be executed

doctest finds text resembling an interactive Python session and checks whether execution produces the displayed output. This keeps small examples connected to the actual interface.

Published22 Oct 2026
Technology

DOM: the object tree behind the web page

DOM presents the document as linked nodes that the program can read and modify. The difference between text and HTML is important when updating content.

Published22 Oct 2026
Technology

Enum: a clear set of named states

Enum groups symbolic names with their values. For example, Status = Enum('Status', {'DRAFT': 'draft', 'LIVE': 'live'}) lets code use Status.DRAFT instead of arbitrary free text.

Published22 Oct 2026
Technology

ExitStack: managing a variable number of resources

contextlib.ExitStack collects context managers and cleanup actions. It helps when input determines how many files need opening rather than the number being fixed in advance.

Published22 Oct 2026