[C++-sig] wchar_t* type conversion

2009-06-22 Thread Nicolas Lara
w = new wchar_t[l];    for(int i=0;iconvertible = w;  } };  void init_module()  {    to_python_converter();    wchar_t_from_python_str();   } BOOST_PYTHON_MODULE(queryparser){  init_module(); } But it doesn't seem to be working. It compiles, but python doesn't understand the conversion. A

Re: [C++-sig] wchar_t* type conversion

2009-06-22 Thread Nicolas Lara
gt; boost::python::converter::rvalue_from_python_stage1_data* data) >>  { >>    const char* value = PyString_AsString(obj_ptr); >>    Py_ssize_t l = PyString_Size(obj_ptr); >>    if (value == 0) boost::python::throw_error_already_set(); >>    void* storage = ( >> &g

Re: [C++-sig] wchar_t* type conversion

2009-06-22 Thread Nicolas Lara
gt; > and the function signature: > > << void testArgument(wchar_t * w){ >>> void testArgument(const wchar_t &w){ > > this make everything works fine: > > I don't know how get this working with wchar_t* in function signature. > Maybe create a cla

[C++-sig] return_internal_reference & overriding methods in a class.

2009-06-24 Thread Nicolas Lara
nature: toString(DocumentWrap {lvalue}) Is there any way to get python to understand the internal reference to Document can be treated as a DocumentWrap? Thanks in advance! Best Regards, -- Nicolas Lara Linux user #380134 http://nicolas-lara.blogspot.com/ Public key id: 0x152e7713 at http://sub

Re: [C++-sig] return_internal_reference & overriding methods in a class.

2009-06-24 Thread Nicolas Lara
I tried adding: implicitly_convertible(); implicitly_convertible(); but it doesn't appear to change anything. I would apreciate any idea on thes regard. Thanks again! On Thu, Jun 25, 2009 at 3:31 AM, Nicolas Lara wrote: > Hello, > > I'm having trouble trying to override

[C++-sig] Building with Scons

2009-07-06 Thread Nicolas Lara
$(BUILD)index.o store.o: mkdir -p $(BUILD) $(CC) $(SRC)store.cpp $(INCLUDES) $(LIBS) $(CFLAGS) -o $(BUILD)store.o util.o: mkdir -p $(BUILD) $(CC) $(SRC)util.cpp $(INCLUDES) $(LIBS) $(CFLAGS) -o $(BUILD)util.o typeconversion.o: mkdir -p $(BUILD) $(CC

Re: [C++-sig] Building with Scons

2009-07-07 Thread Nicolas Lara
> > > Bill > > > > From: cplusplus-sig-bounces+wladwig=wdtinc@python.org > [cplusplus-sig-bounces+wladwig=wdtinc@python.org] On Behalf Of Nicolas > Lara [nicolasl...@gmail.com] > Sent: Monday, July 06, 2009 6:25 PM > T

Re: [C++-sig] Building with Scons

2009-07-07 Thread Nicolas Lara
http://wiki.python.org/moin/boost.python/BuildingExtensions > > Bill > > > > From: cplusplus-sig-bounces+wladwig=wdtinc@python.org > [cplusplus-sig-bounces+wladwig=wdtinc@python.org] On Behalf Of Nicolas > Lara [nicolasl...@gmail.com] > Sent: Tu