Zen of Python

Mark McEahern marklists at mceahern.com
Wed Jan 19 16:36:47 EST 2005


Timothy Fitz wrote:

>While I agree that the Zen of Python is an amazingly concise list of
>truisms, I do not see any meaning in:
>
>Flat is better than nested.
>
>I strive for balance between flat and nested. Does anyone have a good
>example of where this is applied? (specifically to python, or in
>general)
>
One example would be using a function instead of a class when a function 
does the job at the module level.  Using the appropriate degree of 
abstraction/indirection.

// m



More information about the Python-list mailing list