8000 Constant memory view not available for object · Issue #2485 · cython/cython · GitHub
[go: up one dir, main page]

Skip to content
Constant memory view not available for object #2485
@xhochy

Description

@xhochy

When using const object[:] I get the error Const base type cannot be a Python object. Is this a limitation that we cannot have readonly memoryviews with objects? Or, alternatively: should this be possible and is not support by Cython due to a bug?

One can produce a read-only memory-view by passing a non-writable numpy-array with dtype object.

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

      0