A even better advise is to avoid closure entirely.
In reply to Re^2: A 'print' at one spot changes a value at another by pg in thread A 'print' at one spot changes a value at another by ralphmerridew