[C++-sig] converting a PyObject into its C-Type

2010-08-27 Thread Erik Tuerke
Hi! I am trying to convert a PyObject into its C-Type. The thing is, i have a function which takes a PyObject but i need to convert the PyObject into its respective C-Type. For example i have a python class: class_ >("py_fvector4", init()) .def( init<>()) .def("__setitem__",

Re: [C++-sig] converting a PyObject into its C-Type

2010-08-27 Thread Jim Bosch
On 08/27/2010 01:35 AM, Erik Tuerke wrote: Hi! I am trying to convert a PyObject into its C-Type. The thing is, i have a function which takes a PyObject but i need to convert the PyObject into its respective C-Type. For example i have a python class: class_ >("py_fvector4", init()) .def( init<

Re: [C++-sig] Strange boost::python::object behaviour

2010-08-27 Thread Jim Bosch
On 08/04/2010 06:09 AM, Marek Denis wrote: Hello everybody, This is my first post on this mailing group so I wanted to say hello to all ml users ;) I am encounetring a strange problem with boost::python::object in my module. Could you please post a self-contained example that reproduces the