Parallel assignment: a Python idiom cleverly optimized

from blog ntietz.com blog, | ↗ original
Every programmer has had to swap variables. It's common in real programs and it's a frequently used example when people want to show off just how nice and simple Python is. Python handles this case very nicely and efficiently. But how Python handles it efficiently is not always clear, so we'll have to dive into how the runtime works and...