Code basics
Fredrik Lundh
effbot at telia.com
Fri Mar 17 14:58:31 EST 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.
</F>
More information about the Python-list
mailing list