Blender Git Loki

Git Commits -> Revision 265d975

Revision 265d975 by Campbell Barton (master)
May 14, 2021, 14:36 (GMT)
PyAPI: use iterators for ID property methods (keys, values & items)

- Matches changes in Python 3.x dictionary methods.

- Iterating now raises a run-time error if the property-group changes
size during iteration.

- IDPropertyGroup.iteritems() has been removed.

- IDPropertyGroup View & Iterator types have been added.

- Some set functionality from dict_keys/values/items aren't yet
supported (isdisjoint method and boolean set style operations).

Proposed as part of T85675.

Commit Details:

Full Hash: 265d97556aa0f0f2a0e4dd7584e3b8573bbddd54
Parent Commit: 65f9550
Lines Changed: +546, -156

5 Modified Paths:

/release/scripts/modules/rna_prop_ui.py (+1, -1) (Diff)
/source/blender/python/generic/idprop_py_api.c (+451, -127) (Diff)
/source/blender/python/generic/idprop_py_api.h (+39, -7) (Diff)
/source/blender/python/intern/bpy_rna.c (+9, -21) (Diff)
/tests/python/bl_pyapi_idprop.py (+46, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021