Ticket #4935: jelly.patch

File jelly.patch, 481 bytes (added by speth, 6 years ago)

Patch that fixes the issue

  • (a) a/jelly.py.orig vs. (b) b/jelly.py

    a b def _newInstance(cls, state=_NO_STATE): 
    164164        inst = cls.__new__(cls)
    165165
    166166        if state is not _NO_STATE:
    167             inst.__dict__.update(state) # Copy 'instance' behaviour
     167            for k,v in inst.__dict__.iteritems():
     168                if k not in state:
     169                    state[k] = v
     170            inst.__dict__ = state
     171
    168172    else:
    169173        if state is not _NO_STATE:
    170174            inst = instance(cls, state)