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
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
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
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
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
$(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
>
>
> 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
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