blender/tools
Arystanbek Dyussenov 62138aaa5a Python part of multidim. array support for RNA complete.
Multidim. arrays can now be modified at any level, for example:

struc.arrayprop = x
struc.arrayprop[i] = x
struc.arrayprop[i][j] = x
struc.arrayprop[i][j][k] = x
etc...

Approriate rvalue type/length checking is done. 

To ensure all works correctly, I wrote automated tests in release/test/rna_array.py.

These tests cover: array/item access, assignment on different levels, tests that proper exceptions are thrown on invalid item access/assignment.

The tests use properties of the RNA Test struct defined in rna_test.c. This struct is only compiled when building with BF_UNIT_TEST=1 scons arg.

Currently unit tests are run manually by loading the script in the Text Editor.
Here's the output I have: http://www.pasteall.org/7644

Things to improve here:
- better exception messages when multidim. array assignment fails. Those we have currently are not very useful for multidim.
- add tests for slice assignment
2009-09-06 15:13:57 +00:00
..
__init__.py ==SCons== 2006-03-10 20:11:48 +00:00
bcolors.py == SCons == 2006-02-04 14:15:10 +00:00
Blender.py == SCons == 2009-09-04 15:54:06 +00:00
btools.py Python part of multidim. array support for RNA complete. 2009-09-06 15:13:57 +00:00
crossmingw.py 2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r17434:HEAD 2008-12-14 17:32:24 +00:00
mstoolkit.py this file had dos line endings and was causing errors with MSVC express according to artificer. 2006-07-05 21:51:03 +00:00