Tag

function-arguments

0 views collected around this technical thread.

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.

ImmutableMemory ManagementMutable
0 likes · 11 min read
Why Everything Is an Object in Python: Understanding Mutable vs Immutable
Code Mala Tang
Code Mala Tang
Apr 7, 2025 · Fundamentals

Master Python’s Unpacking Operators: * and ** for Lists, Dictionaries, and Functions

This guide explores Python’s unpacking operators * and **, showing how they simplify printing, assigning, merging lists and dictionaries, handling variable function arguments, creating dynamic logging functions, and performing nested unpacking, while also offering practical tips to avoid common pitfalls.

Pythoncode examplesdictionary-merge
0 likes · 10 min read
Master Python’s Unpacking Operators: * and ** for Lists, Dictionaries, and Functions
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.

**kwargs*argsImmutable Objects
0 likes · 4 min read
Understanding Python Parameter Passing Mechanisms and Argument Types
Test Development Learning Exchange
Test Development Learning Exchange
Sep 18, 2023 · Fundamentals

Understanding *args and **kwargs in Python and Their Applications in API Automation

This article explains the concepts and usage of *args and **kwargs in Python functions, provides code examples, and demonstrates how they can be leveraged for flexible parameter handling, request automation, dynamic test data generation, and robust assertions in API testing scenarios.

**kwargs*argsAPI automation
0 likes · 6 min read
Understanding *args and **kwargs in Python and Their Applications in API Automation
Test Development Learning Exchange
Test Development Learning Exchange
Sep 17, 2023 · Fundamentals

Understanding the * and ** Operators in Python: Unpacking Sequences and Dictionaries

This article explains how Python's * and ** operators unpack sequences and dictionaries, handle variable numbers of positional and keyword arguments, and are applied in API automation, iterators, and generators, providing flexible and dynamic coding techniques.

AutomationDouble StarOperators
0 likes · 8 min read
Understanding the * and ** Operators in Python: Unpacking Sequences and Dictionaries
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.

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