Created
May 24, 2018 07:36
-
-
Save tk0miya/121081d9eed7bb9a03351669a7945d10 to your computer and use it in GitHub Desktop.
now async becomes keyword!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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