Python Golf

Jon Ribbens jon+usenet at unequivocal.eu
Tue Nov 7 14:08:06 EST 2023


On 2023-11-07, <avi.e.gross at gmail.com> <avi.e.gross at gmail.com> wrote:
> Discussions like this feel a bit silly after a while. How long
> something is to type on a command line is not a major issue and
> brevity can lead to being hard to remember too especially using
> obscure references.

Of course it's silly, that's why it's called "golf"!

It would be basically insane to use open(0) instead of sys.stdin
like this except where the length of the source code overrides
all other considerations - which is essentially never, unless
playing code golf...


More information about the Python-list mailing list