I have a question about idioms and readability, and there seems to be a clash of Python philosophies for this particular case:
I want to build dictionary A from dict
I think the general rule here is will A["blah"] normally exist, if so try-except is good if not then use if "blah" in b:
A["blah"]
if "blah" in b:
I think "try" is cheap in time but "except" is more expensive.