Python MHA Connection Question
Posted: 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')
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')