* removed warnings and fixed some python refcount errors

* operator class names
- Changed 'name' to '__label__' (since __name__ is already used for the class name)
- Changed 'properties' to '__props__'

* added a PyObject_GetAttrStringArgs(), utility function which Id like to see in pythons C api.
PyObject_GetAttrStringArgs(pyob, "someattr", "foo", "bar") /* pyob.someattr.foo.bar */
This commit is contained in:
2009-03-18 22:22:58 +00:00
parent 43d4e3fa7e
commit 3aab50f775
7 changed files with 106 additions and 69 deletions

View File

@@ -264,6 +264,7 @@ int BPY_run_python_script_space(const char *modulename, const char *func)
PyErr_SetFormat(PyExc_SystemError, "module has no function '%s.%s'\n", scpt->script.filename, func);
}
else {
Py_DECREF(py_func);
if (!PyCallable_Check(py_func)) {
PyErr_SetFormat(PyExc_SystemError, "module item is not callable '%s.%s'\n", scpt->script.filename, func);
}