Delete common entries between two dictionaries

Paul Rubin http
Mon Nov 24 18:53:44 EST 2003


aahz at pythoncraft.com (Aahz) writes:
> >for k in domains_white():
> >   if k in domains_black:
> >      del domains_black[k]
> 
> Didja try that before posting?....  (I see at least two errors.)

Oops, editing error (I removed 'keys' which is no longer needed, but
forgot to remove the parentheses).  No I didn't try it first.
What's the second error?




More information about the Python-list mailing list