I'm diving deeper into Python after experience with several other languages. In order to be 'pythonic' and from a best practice perspective, should methods of a class always return (even if None)? In some languages it's required (or preferred) to always have an explicit return statement.
For example ,a method that alters state but doesn't exactly return a value:
def change_player():
if self._player == 'X':
self._player = 'Y'
elif self._player == 'Y'
self._player = 'X'
else:
pass
Should there be an explicit return statement here at the close of the function?