Re: [Python-Dev] Re: Zen of Python

2005-01-20 Thread Alex Martelli
On 2005 Jan 20, at 02:47, Skip Montanaro wrote: Phillip Actually, this is one of those rare cases where optimization Phillip and clarity go hand in hand. Human brains just don't handle Phillip nesting that well. It's easy to visualize two levels of nested Phillip structure,

[Python-Dev] Re: Zen of Python

2005-01-19 Thread Timothy Fitz
On Thu, 20 Jan 2005 09:03:30 +1000, Stephen Thorne [EMAIL PROTECTED] wrote: Flat is better than nested has one foot in concise powerful programming, the other foot in optimisation. foo.bar.baz.arr involves 4 hashtable lookups. arr is just one hashtable lookup. I find it amazingly hard to

Re: [Python-Dev] Re: Zen of Python

2005-01-19 Thread Phillip J. Eby
At 07:03 PM 1/19/05 -0500, Timothy Fitz wrote: On Thu, 20 Jan 2005 09:03:30 +1000, Stephen Thorne [EMAIL PROTECTED] wrote: Flat is better than nested has one foot in concise powerful programming, the other foot in optimisation. foo.bar.baz.arr involves 4 hashtable lookups. arr is just one

Re: [Python-Dev] Re: Zen of Python

2005-01-19 Thread Skip Montanaro
Phillip Actually, this is one of those rare cases where optimization Phillip and clarity go hand in hand. Human brains just don't handle Phillip nesting that well. It's easy to visualize two levels of nested Phillip structure, but three is a stretch unless you can abstract at

[Python-Dev] Re: Zen of Python

2005-01-19 Thread Stephen Thorne
On Wed, 19 Jan 2005 19:03:25 -0500, Timothy Fitz [EMAIL PROTECTED] wrote: On Thu, 20 Jan 2005 09:03:30 +1000, Stephen Thorne [EMAIL PROTECTED] wrote: Flat is better than nested has one foot in concise powerful programming, the other foot in optimisation. foo.bar.baz.arr involves 4