Skip to content

About exception value ​​of memoryview attribute #124995

@rruuaanng

Description

@rruuaanng

Bug report

Bug description:

>>> mv = memoryview(bytes(b'abcdef'))
>>> mv.c_contiguous
True
>>> mv.f_contiguous
True

Why can the memory of byte sequence be arranged in both C-style and F-style order? This makes me feel very confused.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions