Skip to content

C++ function with existing python datatype #258

@nalyat

Description

@nalyat

Hi,

I want to handle a generic python datatype from C++, but unfortunately couldn't find a way to receive PyObject* arguments, or wrap the existing object using a pybind11::object. Any help appreciated.

When I use PyObject* as function, I get this error:

Incompatible function arguments. The following argument types are supported:
    1. (_object) -> NoneType

T./

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