Skip to content

Commit 1d7ed43

Browse files
author
Sylvain MARIE
committed
0.6.0 changelog
1 parent 0370f33 commit 1d7ed43

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/changelog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
### 0.6.0 - default factories and slots
4+
5+
**default value factories**
6+
7+
- `default_factory` callables now receive one argument: the object instance. Fixes [#6](https://github.com/smarie/python-pyfields/issues/6)
8+
- New decorator `@<field>.default_factory` to define a default value factory. Fixed [#27](https://github.com/smarie/python-pyfields/issues/27)
9+
- New `copy_value`, `copy_field` and `copy_attr` helper functions to create default value factories. Fixed [#26](https://github.com/smarie/python-pyfields/issues/26)
10+
11+
**support for slots**
12+
13+
- `field` now automatically detects when a native field is attached to a class with slots and no `__dict__` is present. In that case, the native field is replaced with a descriptor field. Fixed [#20](https://github.com/smarie/python-pyfields/issues/20).
14+
315
### 0.5.0 - First public version
416

517
**fields**

0 commit comments

Comments
 (0)