In class MHAConnection:
There are function parameters like below with a "/" as the last parameter of the function.
I get a syntax error on these from python3.
I cannot find any info on the web regarding / as a valid parameter nor what it might mean.
Can anyone inform me. I'm somewhat python literate, but not an expert.
Thanks,
Dan..
@_stringify()
def get_contents(self, path=b'', /):
"""Return the contents of the element at "path".
"""
return self._send_command(path.strip() + b'?\n')
Python MHA Connection Question
-
- Posts: 120
- Joined: Mon Jun 24, 2019 12:51 pm
Re: Python MHA Connection Question
This is valid python 3, see https://docs.python.org/3/faq/programmi ... ction-mean
Re: Python MHA Connection Question
Thanks. My installed python3 was Python 3.7.6
This feature must have come later. Need to remember to stay current on my Mac and RasPi
Dan..
This feature must have come later. Need to remember to stay current on my Mac and RasPi
Dan..