Skip to content
This repository was archived by the owner on Jul 7, 2021. It is now read-only.
This repository was archived by the owner on Jul 7, 2021. It is now read-only.

Needed parenthesis in withas #25

Open
@rocky

Description

@rocky
# Bug is not putting parens around (x, y)
def bug(self, nested, a, b):
    with self.assertRaises(ZeroDivisionError):
        with nested(a(), b()) as (x, y):
                1 // 0

when decompiled omits the parenthesis in as (x, y) and apparently this is needed.

rocky/python-uncompyle6@37b8e21

suggests what can be done here and in Issue #24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions