for / while else doesn't make sense

Marko Rauhamaa marko at pacujo.net
Tue Jun 7 18:06:53 EDT 2016


Lawrence D’Oliveiro <lawrencedo99 at gmail.com>:
> While elsewhere, you were criticizing my code for already being so
> terribly large...

Code can be large, only no function should be longer than ~70 lines or
wider than 79 columns. If your function grows above that limit, you
should refactor it and break it into multiple subroutines.


Marko



More information about the Python-list mailing list