|
Boost : |
From: nickm_at_[hidden]
Date: 2001-09-19 08:05:47
Hi all,
I am using Boost.Python to export a class library to Python,
and I have following:
def invoke(c):
if callable(c):
c()
else:
print c
print "object not callable"
"obj" is instance of one of the exported classes, and
"method" is one of its methods
invoke(obj.method) gives me:
<class boost::python::detail::bound_function object at 0038BDE0>
object not callable
How can I correct this?
Thanks
Nikolay
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk