Skip to content

with <something> as: construct fails #60

@inspell

Description

@inspell

Hello!
I am trying to run a piece of code with tinypy (Yeah, I know it's 2017 but tinypy is great) and the code has some "with ___ as ___:" constructs. Tinypy complain with "Exception: error: encode". I guess this construct is not supported but I wanted to verify that. I also got exception for "except Exception as e:" constructs but those I was able to rewrite as "except Exception, e:". Can I do something similar with the "with .." constructs or I need to rewrite them with try/finally?

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