Hi,
On 2 January 2018 at 20:37, Yuri Vic <
yuri...@gmail.com> wrote:
> 'dir(obj.is_a_function().in_ptr())` prints '[]', like it has no methods.
>
> So how do I determine that this pointer is null or not null then?
Like in C, the cdata objects don't answer to regular methods like
``is_null()``, but to operators, at least the ones that exist both in
C and Python. In this case, it's equality: you can ask if ``cdata ==
ffi.NULL``. Or equivalently, truth value: ``if not cdata:``.
A bientôt,
Armin.