Call by Reference / Value
sue
smalleys at gte.net
Fri Apr 14 00:29:48 EDT 2000
I haven't had this problem with SWIG/TCL. Are you sure
python can see the real data from the wrapper, and not just
the data types? I always put
typedef { stuff } TYPE; extern TYPE data;
in the .h file I feed to SWIG (unless I use custom accessor
fns).
Both python and tcl will create a variable if they can't
find it, and silently continue on. This can give you good
separately tested C and python code which fails when you
hook the two together.
Sue.
More information about the Python-list
mailing list