def updated(d, update):
    "Return a copy of the input with the 'update'\n\n    Primarily for updating dictionaries\n    "
    d = d.copy()
    d.update(update)
    return d
Return a copy of the input with the 'update'

Primarily for updating dictionaries
def updated(d, update):
    "Return a copy of the input with the 'update'\n\n    Primarily for updating dictionaries\n    "
    d = d.copy()
    d.update(update)
    return d