Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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): ...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: