Skip to content

Posts

Reject unknown flag bits with IntFlag STRICT

IntFlag normally keeps unknown bits. For a schema that accepts only declared flag bits, set boundary=STRICT and handle ValueError at the input boundary. Run the example Tested on …

Read more →

November 24, 2026

Python batched strict mode can fail after yielding valid batches

Use strict=True when every batch must have the requested size. In Python 3.13, that check happens as the iterator is consumed: earlier complete batches may already have reached the …

Read more →

November 24, 2026

Preserve repeated and blank query values with parse_qsl

When repeated query keys are meaningful, retain a list of pairs instead of immediately converting it to a dictionary. Set keep_blank_values=True when an explicitly empty value also …

Read more →

November 24, 2026

Merge per-call context with LoggerAdapter in Python 3.13

Python 3.13 adds merge_extra=True to LoggerAdapter. It lets a call add or override context while retaining the adapter’s defaults; the default adapter behavior ignores per-call …

Read more →

November 24, 2026

Make hidden-file discovery explicit with glob

A file inventory can silently omit dot-prefixed entries. Choose the hidden-file policy explicitly, and use root_dir to keep results relative to the directory being inspected …

Read more →

November 24, 2026

Keep a binary buffer open after TextIOWrapper.detach

A text wrapper normally owns its underlying binary stream. If the next stage needs that stream, detach() separates it from the wrapper and transfers cleanup responsibility to your …

Read more →

November 24, 2026

Inspect byte order before using array.byteswap

Python’s array stores machine-format values. byteswap() reverses the bytes inside each item in place; it does not attach an endianness label to the array. Run the example Tested on …

Read more →

November 24, 2026

Compare repeated records with SequenceMatcher autojunk disabled

For long sequences of repeated records, SequenceMatcher can treat common elements as unsuitable matching anchors. Compare the default result with autojunk=False when repeated …

Read more →

November 24, 2026

Mail Assure CVE-2026-134624: confirm remediation and service health

N-able’s CNA record for CVE-2026-134624 identifies MailAssure, also known as SpamExperts, builds before 20261121.1943 as affected. Build 20261121.1943 is the corrected boundary. …

Read more →

November 24, 2026

Cribl Stream CVE-2026-115899: verify Workers after updating

For CVE-2026-115899, Cribl recommends upgrading Stream to 4.21.0 or later. The Cribl-authored CNA record lists versions through 4.20.4 as affected and gives v4.21 as the upgrade …

Read more →

November 24, 2026