Tagged articles
5 articles
Page 1 of 1
Data STUDIO
Data STUDIO
Dec 18, 2025 · Fundamentals

10 Essential Python Standard Library Modules You Should Use Today

After a senior engineer pointed out that a custom task scheduler could be replaced by Python’s built‑in graphlib, the author explored the standard library and discovered ten modules—dis, singledispatch, ast, atexit, sys.settrace, tomllib, graphlib, heapq, secrets, and shutil—that simplify debugging, code organization, security, and cross‑platform file handling.

PythonStandard Librarydis
0 likes · 16 min read
10 Essential Python Standard Library Modules You Should Use Today
Test Development Learning Exchange
Test Development Learning Exchange
Jun 26, 2024 · Fundamentals

Python collections module: Counter, defaultdict, deque, namedtuple, ChainMap, custom containers, heapq, and LRU cache examples

This article introduces several useful classes from Python's collections module—including Counter, defaultdict, deque, namedtuple, ChainMap, UserList/UserDict/UserString, as well as heapq and an OrderedDict‑based LRU cache—explaining their purposes and providing ready‑to‑run code examples for each.

ChainMapCollectionsCounter
0 likes · 6 min read
Python collections module: Counter, defaultdict, deque, namedtuple, ChainMap, custom containers, heapq, and LRU cache examples
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2020 · Fundamentals

Implementing a Priority Queue in Python Using heapq

This article explains how to implement a priority queue in Python using the built‑in heapq module, demonstrates extracting smallest and largest elements from price lists, and provides a full PriorityQueue class with push, pop, and is_empty methods, illustrated with stock portfolio examples.

Pythonalgorithmheapq
0 likes · 6 min read
Implementing a Priority Queue in Python Using heapq