[C++-sig] del dict[key] equivalent ?

troy d. straszheim troy at resophonic.com
Wed Mar 11 20:38:50 CET 2009


William Marié wrote:
> Hi,
> 
> I'm looking for a function in boost python ( C++ side ) to do the equivalent
> of del dict[key] but i can't find it .
> Thank you very much
> 

I think you want:

   boost::python::object obj;
   obj["where"].del();

-t


More information about the Cplusplus-sig mailing list