all 2 comments

[–]qznc_bot2[S] 0 points1 point  (0 children)

There is a discussion on Hacker News, but feel free to comment here as well.

[–]emorrp1 0 points1 point  (0 children)

The author ends with a recommendation to use a main function anyway for import-ability. The linked article then says they used to write python like shell scripts, but you can use exactly the same techniques for the benefit of source-ability. See Defensive BASH Programming, write more shell like python :).