effbot at telia.com
Fri Mar 17 20:58:31 CET 2000
Jeff Pinyan <jeffp at crusoe.net> 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