how can I clear a dictionary in python

Steven D'Aprano steve at REMOVE.THIS.cybersource.com.au
Thu Mar 29 00:56:44 EDT 2007


On Thu, 29 Mar 2007 01:51:07 +0200, Bjoern Schliessmann wrote:

> Aahz wrote:
> 
>> Go back and read Christian's post, then post a followup explaning
>> why his solution is better than yours.  Your explanation should
>> use id(). 
> 
> I wonder how you two seem to know exactly what the OP wants ...

By reading his post perhaps? He asked how to clear a dictionary, not how
to assign an empty dictionary to a name. He already knows how to do that.

(I know that from reading his post too.)


-- 
Steven.





More information about the Python-list mailing list