Skip to content

PEP 688: Cannot call super().__buffer__()#104223

@JelleZijlstra

Description

@JelleZijlstra

The following will currently fail with a RecursionError:

class A(bytearray): def __buffer__(self, flags): return super().__buffer__(flags) a = A() mv = memoryview(a) 

Thanks to @chilaxan for finding this, along with some related problems. I am working on a fix.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixestype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions