When I am trying to run an example of pychromecast library, I get the following failure:
~/pychromecast $ python example.py
Traceback (most recent call last):
File "example.py", line 11, in <module>
import pychromecast.controllers.youtube as youtube
File "/home/pi/pychromecast/pychromecast/controllers/youtube.py", line 27
REQUEST_PARAMS_SET_PLAYLIST = {**BASE_REQUEST_PARAMS, **SET_PLAYLIST_METHOD}
^
SyntaxError: invalid syntax
I've tried running this in both Python2 and Python3. What is wrong here?
{**BASE_REQUEST_PARAMS, **SET_PLAYLIST_METHOD}works in Python 3.5 and above.