Use __dict__.update(state) instead of for loop over state.items() and
call to setattr(). This changes semantics, following the change already implemented in pickle. Also reindented a few lines properly.
Showing
Please
register
or
sign in
to comment