how many nested for can we utilize?

Patrol Sun sunp1028 at gmail.com
Sun Aug 17 21:15:34 EDT 2008


I use the exec function. my code's levels are less than 3. BTW,Linus
Torvalds is NOT always right.

2008/8/18 Roel Schroeven <rschroev_nospam_ml at fastmail.fm>

> 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."
>
> (http://lxr.linux.no/linux/Documentation/CodingStyle)
>
> --
> The saddest aspect of life right now is that science gathers knowledge
> faster than society gathers wisdom.
>  -- Isaac Asimov
>
> Roel Schroeven
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080818/83734e41/attachment-0001.html>


More information about the Python-list mailing list