Skip to content

Compiler bug when using "super" as a local #1158

Description

@dpgeorge

The following does not compile correctly:

class A:
    def foo(self):
        super = [1]
        super.pop()
        print(super)

A().foo()

Also related but different bug is exposed if the super = [1] line is commented out.

Activity

  1. dpgeorge commented on May 6, 2017

    @dpgeorge
    MemberAuthor

    Both the above-mentioned bugs were fixed by 5335942

  2. added a commit that references this issue on Sep 6, 2018
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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions