Skip to content Skip to sidebar Skip to footer
Showing posts with the label Language Design

"least Astonishment" And The Mutable Default Argument

Anyone tinkering with Python long enough has been bitten (or torn to pieces) by the following issue… Read more "least Astonishment" And The Mutable Default Argument

Class Instance As Static Attribute

Python 3 doesn't allow you to reference a class inside its body (except in methods): class A: … Read more Class Instance As Static Attribute

Python: Is There Syntax-level Support For Unpacking, From Tuples, The Arguments To An *anonymous* Function?

Suppose we have the following: args = (4,7,5) def foo(a,b,c): return a*b%c Python conveniently all… Read more Python: Is There Syntax-level Support For Unpacking, From Tuples, The Arguments To An *anonymous* Function?

Loose Late Binding V. Strict Late Binding

While reading Python’s Execution model documentation, I realized that Python’s free variables do no… Read more Loose Late Binding V. Strict Late Binding

Loose Late Binding V. Strict Late Binding

While reading Python’s Execution model documentation, I realized that Python’s free variables do no… Read more Loose Late Binding V. Strict Late Binding