Skip to content

Posts

Python: Read a ZIP directory with zipfile.Path

zipfile.Path gives an open ZIP archive a directory-style interface. Use / to select a member and iterdir() to inspect children while keeping the owning ZipFile open. Tested on …

Read more →

November 26, 2026

Python: Keep mapping defaults with str.format_map

str.format_map() uses the supplied mapping directly. That lets a dictionary subclass provide display defaults through __missing__. Expanding the same mapping into keyword arguments …

Read more →

November 26, 2026

Python: Find a shared path by components

os.path.commonpath() compares complete path components. commonprefix() compares characters, so its result can stop halfway through a directory name. Use the component comparison …

Read more →

November 26, 2026

Python: Count unordered selections with math.comb

math.comb(n, k) counts ways to choose k items from n without repetition, ignoring order. It returns the count directly, so a report that only needs a total does not need to create …

Read more →

November 26, 2026

Python: Collapse IP networks without filling gaps

ipaddress.collapse_addresses() combines networks while preserving their combined address coverage. A gap between networks must stay a gap; replacing every input with one broad …

Read more →

November 26, 2026

Python: Average multiplicative factors with geometric_mean

For positive scaling factors applied in sequence, statistics.geometric_mean() gives the constant factor that represents their average multiplicative effect. A doubling followed by …

Read more →

November 26, 2026

Spring AI CVE-2026-59415: choose the supported dependency update

CVE-2026-59415 concerns Spring AI applications using TypesenseVectorStore. The vendor advisory is dated November 19, 2026 and labels the issue High; the vendor-authored CNA record, …

Read more →

November 25, 2026

PyMongo CVE-2026-135146: update each application's driver

MongoDB’s CNA rates CVE-2026-135146 CVSS 4.0 9.1 Critical and CVSS 3.1 7.4 High. The CVE record, published November 25, 2026, identifies PyMongo 3.11.0 up to, excluding, 4.20.2 as …

Read more →

November 25, 2026

openIMIS CVE-2026-82489: verify the complete release upgrade

VulnCheck’s CNA assigns CVE-2026-82489 CVSS 4.0 9.3 Critical and CVSS 3.1 9.8 Critical. It records November 2, 2026 as the public date; the CVE record was published November 25. …

Read more →

November 25, 2026

MongoDB C Driver CVE-2026-135224: choose the matching branch update

MongoDB’s CNA assigns CVE-2026-135224 CVSS 4.0 9.3 Critical and CVSS 3.1 9.1 Critical. Its CVE record was published November 25, 2026. The affected component is the MongoDB C …

Read more →

November 25, 2026