SyntaxError: invalid syntax
balzer82 opened this issue · 4 comments
balzer82 commented
import dvb
File "/Users/balzer82/anaconda/lib/python2.7/site-packages/dvb/dvb.py", line 7
def monitor(stop, offset=0, limit=10, city='Dresden', *, raw=False):
^
SyntaxError: invalid syntax
kiliankoe commented
I can't recall why the *
param is in there... @lucaswo or @h4llow3En maybe?
But it seems that that syntax doesn't work in Python 2, but does in Python 3.
h4llow3En commented
This is a feature of Python3 and this pip package is Python 3 only.
*
Catches all following unnamed commands and forces to call the raw
param with name.
kiliankoe commented
Ah, thanks for the explanation. Python3 ftw I guess.
balzer82 commented
OK. I pip install
it with Python 2.7