Tagged articles
3 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Oct 2, 2022 · Fundamentals

Master Python Decorators: From Basics to Advanced Usage

This article explains Python decorators by first reviewing functions as first‑class objects, then showing how to create simple timing decorators, extend them with *args/**kwargs, and build higher‑order decorators like a repeat‑n‑times wrapper, complete with practical code examples.

Pythonargsdecorators
0 likes · 9 min read
Master Python Decorators: From Basics to Advanced Usage
Ops Development Stories
Ops Development Stories
Dec 29, 2018 · Fundamentals

Master Python Functions: From Basics to Advanced Techniques

This comprehensive guide explains Python functions—their purpose, definition syntax, scope rules, built‑in statements like def, return, global, nonlocal, and lambda, various argument types, recursion, higher‑order functions, and functional tools such as map, filter, and reduce—complete with runnable code examples.

LambdaRecursionarguments
0 likes · 20 min read
Master Python Functions: From Basics to Advanced Techniques