Pro-tip if you're using #VSCode and #Python: use snippets to speed up things that you often want but “it's too much typing”.

It feels great to type >>>[TAB] and get the full invocation for the interactive console in that line of code.

@ambv There's a new style "ifmain?"

@jbowen Ha, good eye! The newer thing would be to have a __main__.py in your package but my favorite thing is to use pyproject.toml and expose functions via [project.scripts] which gives them nice short names.

`python3 -m something.something` sure is unambiguous but I really prefer short tool names. `black` instead of `python3 -m black`. This sort of thing.

@ambv Ah, got it.

I spend most of my time at $DAYJOB writing single file scripts that stick to the standard library (though I am aware of PEP 723) and was wondering if there was a new preferred idiom for "ifmain."