how can I clear a dictionary in python

Christian Tismer tismer at
Thu Mar 29 00:47:53 CEST 2007

On 29.03.2007, at 00:38, Marko.Cain.23 at wrote:

> Hi,
> I create a dictionary like this
> myDict = {}
> and I add entry like this:
> myDict['a'] = 1
> but how can I empty the whole dictionary?

Reading the Python docs might help.
But before, I would try a dir(myDict).
Maybe you will find an easter-egg
which has exactly the name you are looking for?

cheers - chris

More information about the Python-list mailing list