In article <[EMAIL PROTECTED]>, Larry Bates <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: >> >> I create a dictionary like this >> myDict = {} >> >> and I add entry like this: >> myDict['a'] = 1 >> but how can I empty the whole dictionary? > >just point myDict to an empty dictionary again > >myDict={}
Go back and read Christian's post, then post a followup explaning why his solution is better than yours. Your explanation should use id(). -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ Need a book? Use your library! -- http://mail.python.org/mailman/listinfo/python-list