Which objects are expanded by double-star ** operator?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Tue Jun 8 12:57:22 EDT 2010


On Tue, 08 Jun 2010 08:36:00 -0600, Ian Kelly wrote:

>> I'm afraid your test is invalid. As the documentation states, you
>> CANNOT write to locals() -- the change doesn't stick. This is nothing
>> to do with dicts.
> 
> Huh, good point.  But actually the docs just say that the changes aren't
> guaranteed to stick, and in the case of my test I inspected the class
> and the methods were indeed replaced with None.

So they are. I've just learned something new, thanks.



-- 
Steven



More information about the Python-list mailing list