blender/release
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
..
datafiles svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22875:22935 2009-09-01 18:49:33 +00:00
freedesktop * blender doesn't need the -w anymore to start in a window 2009-02-28 09:25:42 +00:00
io add blendcache files to dependancies. next step, per frames deps. 2009-09-04 01:33:22 +00:00
irix-6.2-mips 2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19323:HEAD 2009-04-20 15:06:46 +00:00
plugins Patch 17403, small gcc warning fixes. 2008-09-20 12:28:01 +00:00
scripts svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22717:22875 2009-08-29 23:41:09 +00:00
test Python part of multidim. array support for RNA complete. 2009-09-06 15:13:57 +00:00
text Updated python license, this is compatible with current 2.5 and older. 2008-10-11 15:55:22 +00:00
ui Disconnect/connect hair: 2009-09-05 20:12:08 +00:00
windows === SCons === 2009-06-12 15:37:23 +00:00
getversion.py Slight improvements in release creation. 2009-04-11 19:04:59 +00:00
Makefile copy the systems python to the install dir for re-distrobution (non-osx unix), removed some unused stuff in makefiles 2009-08-16 18:14:17 +00:00
VERSION Part 1 of the 2.49b commit 2009-08-31 18:16:18 +00:00