mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
c32ce342c9bead79d3c269c89fb2f6f4a4ac3cbf
Using `model.copy(deep=True)` will deep copy a module instance. Making a deep copy is useful for models that have lists of dicts or any other non-simple data structure to not accidentally modify data between instances. `model.copy()` behaviour is unchanged and will do a shallow copy of the model instance. fix #249
pydantic ======== |BuildStatus| |Coverage| |pypi| |gitter| Data validation and settings management using python 3.6 type hinting. See `documentation`_ for more details. .. |BuildStatus| image:: https://travis-ci.org/samuelcolvin/pydantic.svg?branch=master :target: https://travis-ci.org/samuelcolvin/pydantic .. |Coverage| image:: https://codecov.io/gh/samuelcolvin/pydantic/branch/master/graph/badge.svg :target: https://codecov.io/gh/samuelcolvin/pydantic .. |pypi| image:: https://img.shields.io/pypi/v/pydantic.svg :target: https://pypi.python.org/pypi/pydantic .. |gitter| image:: https://badges.gitter.im/pydantic.svg :target: https://gitter.im/pydantic/Lobby .. _documentation: https://pydantic-docs.helpmanual.io/
Languages
Python
99.7%
Makefile
0.3%