Why does Python show the whole array?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Thu Apr 9 10:58:55 CEST 2009

In message <7e7a386f-d336-4186-822d-
c6af0a581751 at e38g2000vbe.googlegroups.com>, John Machin wrote:

> On Apr 9, 4:53 pm, Lawrence D'Oliveiro <l... at geek-
> central.gen.new_zealand> wrote:
>> This is why conditional constructs should not accept any values other
>> than True and False.
> An alternative viewpoint: This is what happens when one user doesn't
> understand a long-standing idiom and/or doesn't read the manual.
> That's all. It doesn't constitute evidence that such a restriction
> would be generally beneficial.

Fine if it only happened once. But it's a commonly-made mistake. At some 
point you have to conclude that not all those people are stupid, there 
really is something wrong with the design.

More information about the Python-list mailing list