Skip to content

ispynull #151

Closed
Closed
@stevengj

Description

@stevengj

Sometimes it is helpful to check whether we have a NULL python object, created via PythonCall.pynew(), e.g. to check if something has been initialized yet. (PyPlot needs this for lazy module loading, for example.) It might be nice to have a function like:

ispynull(x::Py) = PythonCall.getptr(x) == PythonCall.C.PyNULL

since this otherwise requires you access PythonCall internals.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions