Context manager to temporarily change the variable of a register [aka write swap(a,b)]

Emile van Sebille emile at fenx.com
Tue Aug 25 15:48:41 EDT 2009


On 8/25/2009 12:33 PM Evan Driscoll said...
<snip>

> So my question is: is what I want possible to do in Python? 

Probably not with immutables (as in your example) -- maybe otherwise.

Emile




More information about the Python-list mailing list