Skip to content

Async/Await syntax Python3.5 #72

Closed
@ThraaxSession

Description

@ThraaxSession
  • Editor name and version: Visual Studio Code 1.9
  • Platform: Linux
  • Color scheme:
  • MagicPython version:
  • A sreenshot: 1.0.3
  • 5-10 lines of surrounding code:
async def check_environment(*envVars):
    """ environment check module """
    mapEnv = {}
    for env in envVars:
        try:
            mapEnv[env] = await os.environ[env]
        except IndexError:
            pass
    return mapEnv

Hi,
with Python3.5 there is a new syntax defintion for Async/Await:
https://www.python.org/dev/peps/pep-0492/
Would you mind to update MagicPython? I get a sytanx error for the example code. It's a great tool! 👍

Gino

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions