David A. Black wrote:

>    h1 = h2.update(h1)
>
> you're going to change h2, which might also be undesireable in some
> cases.

h=h2.dup.update(h)