Skip to content

Instantly share code, notes, and snippets.

@tk0miya
Created May 24, 2018 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tk0miya/121081d9eed7bb9a03351669a7945d10 to your computer and use it in GitHub Desktop.
Save tk0miya/121081d9eed7bb9a03351669a7945d10 to your computer and use it in GitHub Desktop.
now async becomes keyword!
[1] tkomiya@deneb> python3.6
Python 3.6.5 (default, Mar 31 2018, 01:44:52)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> def foo(**kwargs):
... return kwargs
...
>>> foo(async=True)
{'async': True}
>>>
tkomiya@deneb> python3.7
Python 3.7.0b3 (default, May 20 2018, 22:05:04)
[Clang 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> def foo(**kwargs):
... return kwargs
...
>>> foo(async=True)
File "<stdin>", line 1
foo(async=True)
^
SyntaxError: invalid syntax
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment