Code basics

Fredrik Lundh effbot at
Fri Mar 17 20:58:31 CET 2000

Jeff Pinyan <jeffp at> wrote:
> I'll be a jerk, and do this brevity-style:
>   while notDone:
>     print ("Oh no!","Tjohoo")[this.getNumberOfSomething() == 10]
> Now, I ask you folk, is that "bad" Python?  Is that "bad" programming in
> general, to be brief and succinct like that?

compared to the original, your solution is slower, doesn't
scale, and is harder to maintain.  so yes, it's pretty bad.


More information about the Python-list mailing list