Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-248

Don't use name "async" as variable name

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.5, 1.3.1, 2.0
    • Affects Version/s: None
    • Component/s: asyncio
    • None

      async is a keyword at python 3.7.

      https://github.com/mongodb/motor/blob/adb8d123ec8b71c5446c66ae79cf296baee3b6f2/motor/frameworks/asyncio/__init__.py#L32

      `from asyncio import async as ensure_future`

      That will raise a SyntaxError.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            songww songww
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: