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
Python Programming Learning Circle
Python Programming Learning Circle
Aug 16, 2022 · Fundamentals

Exploring Useful Python Decorators: @lru_cache, @jit, @do_twice, @count_calls, @dataclass, @singleton, @use_unit, @singledispatch

This article introduces Python decorators, explains how they can modify function behavior, and provides practical examples of eight useful decorators—including @lru_cache, @jit, @do_twice, @count_calls, @dataclass, @singleton, @use_unit, and @singledispatch—along with code snippets that demonstrate their implementation and benefits.

Code ExamplesJITSingleton
0 likes · 10 min read
Exploring Useful Python Decorators: @lru_cache, @jit, @do_twice, @count_calls, @dataclass, @singleton, @use_unit, @singledispatch
MaGe Linux Operations
MaGe Linux Operations
Aug 29, 2021 · Backend Development

How Python’s singledispatch Simplifies Custom JSON Serialization

This article explores Python’s underused singledispatch feature from PEP 443 as a clean, extensible way to serialize arbitrary objects to JSON, comparing it with traditional json module approaches and showing how it avoids cumbersome if‑elif‑else logic while keeping classes untouched.

BackendPythonfunctools
0 likes · 6 min read
How Python’s singledispatch Simplifies Custom JSON Serialization
MaGe Linux Operations
MaGe Linux Operations
Mar 2, 2019 · Fundamentals

Master Python’s functools: Decorators, partial, caching, and more

This article explores Python’s functools module, demonstrating how to create and use decorators, partial functions, update_wrapper, total_ordering, cmp_to_key, lru_cache, reduce, and singledispatch, with clear code examples that illustrate each utility and its practical applications.

Pythoncachingdecorators
0 likes · 19 min read
Master Python’s functools: Decorators, partial, caching, and more