Tagged articles
9 articles
Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Jun 23, 2025 · Fundamentals

Master Python Function Arguments: Positional, Keyword, Default, *args, **kwargs

This guide walks through ten Python function‑argument examples—including positional, keyword, default values, mutable‑default pitfalls, variable‑length *args and **kwargs, argument unpacking, ordering rules, and mutable‑object handling—providing clear code snippets and explanations for each case.

Function ArgumentsPythonargs-kwargs
0 likes · 7 min read
Master Python Function Arguments: Positional, Keyword, Default, *args, **kwargs
JavaScript
JavaScript
May 3, 2025 · Frontend Development

Why Google Engineers Avoid JavaScript Default Parameters (And What to Use Instead)

This article explains the subtle bugs, predictability issues, scope interactions, and readability concerns that can arise from JavaScript default parameters, and presents explicit argument handling and object destructuring as safer alternatives for large‑scale development.

Default ParametersFunction ArgumentsJavaScript
0 likes · 3 min read
Why Google Engineers Avoid JavaScript Default Parameters (And What to Use Instead)
Code Mala Tang
Code Mala Tang
Apr 23, 2025 · Fundamentals

Why Everything Is an Object in Python: Understanding Mutable vs Immutable

This article explains Python’s core principle that every value is an object, detailing how identity, type, and value define objects, and contrasts mutable and immutable types through practical code examples, illustrating their impact on memory management, variable assignment, function arguments, and common pitfalls.

Function ArgumentsMemory ManagementObjects
0 likes · 11 min read
Why Everything Is an Object in Python: Understanding Mutable vs Immutable
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
Python Programming Learning Circle
Python Programming Learning Circle
Apr 20, 2021 · Fundamentals

Understanding Different Types of Arguments in Python Function Definitions

This article explains Python function definitions, covering required, default, keyword, positional, variable-length (*args, **kwargs), and positional-only/keyword-only parameters, illustrating each type with syntax, usage rules, and example code snippets, and common pitfalls such as mutable default values and argument ordering errors.

Function ArgumentsPythondefaults
0 likes · 9 min read
Understanding Different Types of Arguments in Python Function Definitions