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 — Refleak in LOAD_SUPER_ATTR_ATTR · Issue #104413 · python/cpython

Refleak in LOAD_SUPER_ATTR_ATTR #104413

New issue
Copy link
New issue
Copy link
Closed
Closed
Refleak in LOAD_SUPER_ATTR_ATTR#104413
Copy link
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

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

The buildbots show a refleak in test_super. I narrowed it down to this:

"""Unit tests for zero-argument super() & related machinery."""

import unittest


class TestSuper(unittest.TestCase):

    def test_attribute_error(self):
        class C:
            def method(self):
                return super().msg

        try:
            C().method()
        except AttributeError:
            pass


if __name__ == "__main__":
    unittest.main()

And found a fix. PR incoming.

Linked PRs

  • gh-104413: Fix refleak when super attribute throws AttributeError #104414

Activity

  1. JelleZijlstra
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on May 12, 2023
  2. JelleZijlstra
    added a commit that references this issue on May 12, 2023

    pythongh-104413: Fix refleak when super attribute throws AttributeError

    7f1ec5e
  3. JelleZijlstra commented on May 12, 2023

    @JelleZijlstra
    JelleZijlstra
    on May 12, 2023
    MemberAuthor
    More actions

    The buildbot run at https://buildbot.python.org/all/#/builders/75/builds/761 shows several other refleaks, but none of them reproduce on my branch with the patch from #104414, so hopefully that one is enough to get the bots clean.

  4. kumaraditya303
    closed this as completedon May 12, 2023
  5. kumaraditya303
    added a commit that references this issue on May 12, 2023

    gh-104413: Fix refleak when super attribute throws AttributeError (#1…

    718b132
  6. carljm
    added a commit that references this issue on May 12, 2023

    Merge branch 'main' into supermon

    8efd7c6
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

    type-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.