jazzband / jazzband/jsonmodels

no deepcopy

Open
#127 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
343
Forks
50
PR merge metrics
No merged PRs in 30d

Description

"Bug": copy.deepcopy is not possible.

```python
from jsonmodels import models, fields, validators
import copy

class A(models.Base):
x = fields.IntField(required=True)

a1 = A(x = 1)
a2 = copy.deepcopy(a1)
print(a1.x)
print(a2.x) # fails in this line
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.