GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — PEP 688: Cannot call super().__buffer__() · Issue #104223 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
PEP 688: Cannot call super().__buffer__()#104223
Copy link
Labels
3.12only security fixesonly security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@JelleZijlstra
JelleZijlstra
opened on May 6, 2023
Issue body actions

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

  • gh-104223: Fix issues with inheriting from buffer classes #104227

Activity

  1. JelleZijlstra
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on May 6, 2023
  2. AlexWaygood
    added
    3.12only security fixesonly security fixes
    on May 6, 2023
  3. JelleZijlstra
    added a commit that references this issue on May 8, 2023

    gh-104223: Fix issues with inheriting from buffer classes (#104227)

    405eacc
  4. JelleZijlstra commented on May 8, 2023

    @JelleZijlstra
    JelleZijlstra
    on May 8, 2023
    MemberAuthor
    More actions

    Thanks @chilaxan for reporting several possible crashes and thanks @kumaraditya303 for reviewing the fix!

  5. JelleZijlstra
    closed this as completedon May 8, 2023
  6. jbower-fb
    added a commit that references this issue on May 8, 2023

    pythongh-104223: Fix issues with inheriting from buffer classes (pyth…

    b28c5f2
  7. carljm
    added 4 commits that reference this issue on May 9, 2023

    Merge branch 'main' into inlinecomp2

    76077cd

    Merge branch 'main' into fixsendfamily

    a614216

    Merge branch 'main' into supermon

    c48eee3

    Merge branch 'main' into fixloadsuperspec

    cf11908
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.