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

How Is The Python Grammar Used Internally?

I'm trying to get a deeper understanding of how Python works, and I've been looking at the … Read more How Is The Python Grammar Used Internally?

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

"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

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?