Python MHA Connection Question

Post Reply
dpoznan
Posts: 11
Joined: Wed Jun 30, 2021 10:50 pm

Python MHA Connection Question

Post by dpoznan » Thu Jul 01, 2021 12:24 am

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')

tobiasherzke
Posts: 64
Joined: Mon Jun 24, 2019 12:51 pm

Re: Python MHA Connection Question

Post by tobiasherzke » Thu Jul 01, 2021 8:26 am


dpoznan
Posts: 11
Joined: Wed Jun 30, 2021 10:50 pm

Re: Python MHA Connection Question

Post by dpoznan » Thu Jul 01, 2021 1:51 pm

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..

Post Reply