offenesdresden/dvbpy

SyntaxError: invalid syntax

balzer82 opened this issue · 4 comments

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

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.

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.

Ah, thanks for the explanation. Python3 ftw I guess.

OK. I pip install it with Python 2.7