summaryrefslogtreecommitdiff
path: root/python/modules/IcePy/Util.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2017-03-08 15:47:34 -0800
committerMark Spruiell <mes@zeroc.com>2017-03-08 15:47:34 -0800
commitfc32c2a7805365e7f40ab8a664f94efae35137da (patch)
tree9004df864027bfef52218772e88357e01d9bdf0c /python/modules/IcePy/Util.h
parentRefreshed Ice::optional (diff)
downloadice-fc32c2a7805365e7f40ab8a664f94efae35137da.tar.bz2
ice-fc32c2a7805365e7f40ab8a664f94efae35137da.tar.xz
ice-fc32c2a7805365e7f40ab8a664f94efae35137da.zip
- ICE-6845 - More dispatcher fixes for Python
- Deprecated the InitializationData.threadHook member - Added threadStart and threadStop members to InitializationData - InitializationData.batchRequestInterceptor can now be a callable
Diffstat (limited to 'python/modules/IcePy/Util.h')
-rw-r--r--python/modules/IcePy/Util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/modules/IcePy/Util.h b/python/modules/IcePy/Util.h
index 744a21fa6e2..ecf65dee05b 100644
--- a/python/modules/IcePy/Util.h
+++ b/python/modules/IcePy/Util.h
@@ -110,6 +110,13 @@ inline bool checkString(PyObject* p)
bool getStringArg(PyObject*, const std::string&, std::string&);
//
+// Get an object attribute having the given name. If allowNone is true, a value of Py_None is allowed, otherwise
+// a value of Py_None is treated as if the attribute is undefined (i.e., the function returns nil). The caller
+// must release the reference to the returned object.
+//
+PyObject* getAttr(PyObject*, const std::string&, bool allowNone);
+
+//
// Get the name of the current Python function.
//
std::string getFunction();