2 ms·
> https://news.ycombinator.com/item?id=29083367 https://news.ycombinator.com/item?id=29083367 > > https://blog.danslimmon.com/2019/07/15/do-nothing-scripting-t
by sampo 2y ago
> https://news.ycombinator.com/item?id=29083367 https://news.ycombinator.com/item?id=29083367
> > https://blog.danslimmon.com/2019/07/15/do-nothing-scripting-the-key-to-gradual-automation/ https://blog.danslimmon.com/2019/07/15/do-nothing-scripting-...
What is the point of defining a Python class with a single `run` method, and then running with `Class.run()`, instead of just defining a `function` and running with `function()`?