Skip to content

memoryview assignment fails for .NET numeric types #1219

Open
@slozier

Description

@slozier

The following should work:

import System
m = memoryview(bytearray(1))
m[0] = System.Byte()

Appears to be a regression from IronPython 2. Causes socket.recvfrom_into(memoryview) to fail. The C# implementation of recvfrom_into should probably be rewritten to use IPythonBuffer, but still seems like a valid use case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NET interopIssues relating to how IronPython interacts with .NET types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions