[Bf-python] RE: CVS commit: blender/source/blender/python/api2_2x Object.c blender/source/blender/python/api2_2x/doc Object.py
Yann Vernier
yann at donkey.dyndns.org
Tue Jan 3 23:21:52 CET 2006
On Sun, Jan 01, 2006 at 03:44:48PM -0500, Stephen Swaney wrote:
> if( !PyArg_ParseTuple( args, "|i", &linked ) )
> return EXPP_ReturnPyObjError( PyExc_TypeError,
> "2 ints expected as arguments" );
> # Error msg is wrong. only 1 int is expected!
And besides, ParseTuple is quite capable of setting that exception
itself. In this case the argument was even optional.
More information about the Bf-python
mailing list