new string formatting with local variables

Ian Kelly ian.g.kelly at gmail.com
Mon Jun 6 20:31:36 EDT 2011


On Mon, Jun 6, 2011 at 6:11 PM, Ben Finney <ben+python at benfinney.id.au> wrote:
>> You must use prefix-** in the call to unpack the mapping as keyword
>> arguments. Note that using locals() like this isn't best-practice.
>
> Who says so, and do you find their argument convincing? Do you have a
> reference for that so we can see why?

http://stackoverflow.com/questions/1550479/python-is-using-vars-locals-a-good-practice



More information about the Python-list mailing list