[C++-sig] Re: converting dict value to object

yakumoklesk at yahoo.es yakumoklesk at yahoo.es
Tue Sep 16 17:20:46 CEST 2003


py::object integer_object = dictio['a']; failed to compile, but

py::object integer_object( dictio['a'] );  worked ok.

Thanks for the help and the URL of calling Policies.

See ya.

David "Reading" Lucena

> > How can I do the 
> > CONVERSION_FROM_OBJECT_ITEM_TO_OBJECT?
> >
> > Thanks.
> >
> > David Lucena.
> 
> py::object integer_object = dictio['a'];
> 
> > PD.- BTW, Is there any documentation/examples explaining conversion 
> > policies? It's a little bit hard for me understanding such conversions.
> 
> http://www.boost.org/libs/python/doc/v2/CallPolicies.html
> 
> -- 
> Dave Abrahams
> Boost Consulting
> www.boost-consulting.com
> 
> 
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig






More information about the Cplusplus-sig mailing list