Tagged articles
6 articles
Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Feb 11, 2025 · Fundamentals

Understanding Python Parameter Passing Mechanisms and Argument Types

Python uses a pass‑by‑object‑reference model, meaning functions receive references to objects; this article explains how mutable and immutable objects behave under this model, describes positional, keyword, default, *args and **kwargs argument types, and provides code examples illustrating each case.

Function ArgumentsImmutable ObjectsPass by Reference
0 likes · 4 min read
Understanding Python Parameter Passing Mechanisms and Argument Types
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
MaGe Linux Operations
MaGe Linux Operations
Jul 9, 2017 · Fundamentals

Master Python Decorators: From Basics to Advanced Usage

This article provides a comprehensive guide to Python functions, scopes, variable lifecycles, closures, and decorators, illustrating each concept with clear explanations and runnable code examples, and shows how to create flexible, reusable decorators using @ syntax, *args, and **kwargs.

Decoratorargsclosure
0 likes · 22 min read
Master Python Decorators: From Basics to Advanced Usage