3 ms·
Not necessarily. What I said can apply to even a class with with 1 method that takes no arguments... though you might often recognize it as a more sophisticated
by mehrdadn 6y ago
Not necessarily. What I said can apply to even a class with with 1 method that takes no arguments... though you might often recognize it as a more sophisticated kind of iterator:
class BFS(object):
def __init__(self, origin): self.origin = origin; ...
def next(self): ...