Understanding the * Pattern in Function Definitions
Explanation of how Python’s * and ** argument patterns work, including keyword-only arguments and flexible function signatures.
Explanation of how Python’s * and ** argument patterns work, including keyword-only arguments and flexible function signatures.
We like to pretend that functions, methods, and procedures are fundamentally different—but they’re all just reusable blocks of logic. This post breaks down the distinctions and argues they’re more about language rules than meaningful differences.