labrad/pylabrad

__dir__ in client.py no longer returns a list in python 3

fanmingyu212 opened this issue · 0 comments

IPython tab complete no longer works with python 3.6. It worked previously in python 2.7.
Calling the list() constructor on the key() generator in the following line solves the issue.

return sorted(set(self._attrs.keys() + self.__dict__.keys() + dir(type(self))))

Changed code so autocomplete work:
return sorted(set(list(self._attrs.keys()) + list(self.__dict__.keys()) + dir(type(self))))