Page 1 of 1

Python MHA Connection Question

Posted: Thu Jul 01, 2021 12:24 am
by dpoznan
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')

Re: Python MHA Connection Question

Posted: Thu Jul 01, 2021 8:26 am
by tobiasherzke

Re: Python MHA Connection Question

Posted: Thu Jul 01, 2021 1:51 pm
by dpoznan
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..