Complex datastructures in Python

Alex cut_me_out at hotmail.com
Tue Jun 27 17:42:36 EDT 2000


It seems like you could get what you want with this sort of code:

while (whatever):
    new_forward = whatever
    l = forward[domain] = forward.get (domain, [])
    l.append (new_forward)

Alex.



More information about the Python-list mailing list