2012/2/19 Stefan Behnel
> That's different for PyComplexObject, which allows direct unboxed access to
> the real and imaginary number fields. Cython makes use of that for
> interfacing between C/C++ complex and Python complex.
>
Why don't you use PyComplex_AsCComplex or other similar API for thi
Amaury Forgeot d'Arc, 19.02.2012 18:04:
> 2012/2/19 Stefan Behnel
>> bufaccess.c:22714: error: ‘PyBoolObject’ undeclared
>>
>> bufaccess.c:22715: error: ‘PyComplexObject’ undeclared
>
> Why are these structures needed? Would Cython allow them to be
> only aliases to PyObject?
Not sure about the P
Stefan Behnel, 18.02.2012 11:20:
> Amaury Forgeot d'Arc, 18.02.2012 10:08:
>> I made some modifications to pypy, cython and lxml,
>> and now I can compile and install cython, lxml, and they seem to work!
>>
>> For example::
>> html = etree.Element("html")
>> body = etree.SubElement(html, "b
2012/2/19 Stefan Behnel
> bufaccess.c:22714: error: ‘PyBoolObject’ undeclared
>
> bufaccess.c:22715: error: ‘PyComplexObject’ undeclared
>
Why are these structures needed? Would Cython allow them to be
only aliases to PyObject?
--
Amaury Forgeot d'Arc
__
Amaury Forgeot d'Arc, 18.02.2012 21:20:
> 2012/2/18 Stefan Behnel
>
>> And now the question is: how do I debug into PyPy? From the nightly build,
>> I don't get any debugging symbols in gdb, just a useless list of call
>> addresses (running the ref-counting related "arg_incref" test here):
>>
>> "
Amaury Forgeot d'Arc, 18.02.2012 15:41:
> 2012/2/18 Stefan Behnel
>> Here's an example.
>>
>> Python code:
>>
>> def print_excinfo():
>> print(sys.exc_info())
>>
>> Cython code:
>>
>> from stuff import print_excinfo
>>
>> try:
>> raise TypeError
>> except TypeError:
>> print_exci