Comment

Comment by remram

  class Foo(object):
      def run(self, context): ...
Objects with only a single method to run it are already built into Python, they are the functions.

  def foo(context): ...
parent remram 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton