News for hackers. Stuff that matters.
Re:The use of `class` for things that should be simple free ... by mehrdadn on Thursday May 28, 2020 @03:04AM (#23334347)
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): ...

There are no comments on this comment yet.