Menu

#197 Heads-up: async is a keyword in Python 3.7

v1.6.2.0
closed-fixed
None
5
2017-12-21
2017-12-20
No

async is a keyword in Python 3.7 and can not be used as an argument name. See https://www.python.org/dev/peps/pep-0492/#deprecation-plans.

Using Python 3.7.0a3:

X:\Python37>python.exe -m pymol
Error: unable to initalize the pymol.cmd module
Traceback (most recent call last):
  File "X:\Python37\lib\site-packages\pymol\cmd.py", line 226, in <module>
    from . import editor
  File "X:\Python37\lib\site-packages\pymol\editor.py", line 406
    dir=1,hydro=-1,ss=0,async=-1,quiet=1,_self=cmd):
                            ^
SyntaxError: invalid syntax

Discussion

  • Thomas Holder

    Thomas Holder - 2017-12-20
    • assigned_to: Thomas Holder
     
  • Thomas Holder

    Thomas Holder - 2017-12-20

    Thanks Christoph!

     
  • Thomas Holder

    Thomas Holder - 2017-12-21
    • status: open --> closed-fixed
     
  • Thomas Holder

    Thomas Holder - 2017-12-21

    fixed in rev 4184.

    Renamed all async variables to async_ (trailing underscore). Backwards compatibility of function keyword arguments is handled with **kwargs.

     
  • Christoph Gohlke

    Works for me. Thank you.

     

Log in to post a comment.

MongoDB Logo MongoDB