[Cython] Hello
John Skaller2
skaller at internode.on.net
Tue Jan 28 07:33:43 EST 2020
> On 28 Jan 2020, at 21:07, Stefan Behnel <stefan_ml at behnel.de> wrote:
>
> John Skaller2 schrieb am 28.01.20 um 10:57:
>> What’s a “descr” when its at home?
>
> A descriptor, a special protocol in Python.
>
> https://docs.python.org/3/howto/descriptor.html
Got it, thanks!
>
>> There are some special words in pxd files like “list” which mean
>> PyObject that happens to be a list. Is there a list of these somewhere?
>
> See Builtin.py.
Got it, thanks! Very useful file.
I’m curious about this comment in that file:
# This conflicts with the C++ bool type, and unfortunately
# C++ is too liberal about PyObject* <-> bool conversions,
# resulting in unintuitive runtime behavior and segfaults.
# ("bool", "PyBool_Type", []),
I can believe it. Bool is a mess in C, twice as bad in C++ ..
and exponentially screwed up in Felix :-)
The problem is compatibility in bindings..
The thing is I did translate bint in pxd files to Felix bool,
which is a bit, embedded in a 64 bit unsigned int .. different
to both C and C++ :-)
Now you have me worried! Any more
detailed explanation of this issue?
—
John Skaller
skaller at internode.on.net
More information about the cython-devel
mailing list