how many nested for can we utilize?

Roel Schroeven rschroev_nospam_ml at
Sun Aug 17 21:19:37 CEST 2008

Nick Dumas schreef:
> A good quote I read (I can't remember who it was from, though) is "If
> you need more than three levels of indentation, then something is
> seriously wrong with your code." Possibly Guido himself?

Linus Torvalds in the Linux kernel coding style document:

"[...] The answer to that is that if you need more than 3 levels of 
indentation, you're screwed anyway, and should fix your program."


The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
   -- Isaac Asimov

Roel Schroeven

More information about the Python-list mailing list