This is used a lot:
if host_list is None:
host_list = self.host_list
curious - do you mean 'if nothing has been specified' or if the object
is actually None?
Just trying to distinguish between an empty list or an empty string.
since:
foo =
foo is None
False
foo = ''
foo is None
False
If you're checking for specifically None there, then that's fine -
otherwise we can just do: if not host_list:
I couldn't tell from the context which was desired.
thanks
-sv