Inyeol <[email protected]> writes: > def get_all(self): > for number in self._numbers: > yield number
I think
def get_all(self):
return iter(self._numbers)
is more direct.
--
http://mail.python.org/mailman/listinfo/python-list
Inyeol <[email protected]> writes: > def get_all(self): > for number in self._numbers: > yield number
I think
def get_all(self):
return iter(self._numbers)
is more direct.
--
http://mail.python.org/mailman/listinfo/python-list