[C++-sig] Delete objects, remove from dict

2010-10-24 Thread Simon W
Hey, I have a dict of the main namespace in boost::python. Now I want to delete an object from the dict to unload/delete that object dict namespace = .. extract dict from __main__ module ...; namespace["test"] = object(555); namespace.remove("test"); // <- how can I do something like this with b

[C++-sig] Inheritance problem

2010-10-24 Thread Erik Türke
Hi! I am trying to expose some c++ classes with boost.python. Unfortunately, i have some trouble with the inheritance of classes which need a wrapper. It is something like that: class Base { public: void someFunction() { doSomething; } }; class BaseWrapper : public Base, boost::python::wr

Re: [C++-sig] Delete objects, remove from dict

2010-10-24 Thread Ralf W. Grosse-Kunstleve
> namespace.remove("test"); // <- how can I do something like this with boost >python? namespace["test"].del(); See also: http://www.boost.org/doc/libs/1_44_0/libs/python/doc/v2/object.html Ralf ___ Cplusplus-sig mailing list [email protected]