Johannes Bauer <dfnsonfsdu...@gmx.de>:

> def make_street_address_map(info_list):
>     return { info.get_street_address(): info.get_zip_code()
>                for info in info_list }

Live and learn. Have been an the lookout for dict comprehensions, but
didn't notice they were already included.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to