Code basics
Justin Sheehy
dworkin at ccs.neu.edu
Fri Mar 17 14:25:57 EST 2000
Jeff Pinyan <jeffp at crusoe.net> writes:
> 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? I'm curious -- I have a
> tendency to do things like that.
I'd call it bad programming, because succintness should not take
priority over readability. Unless you're using some other P___ language.
Besides, you used one more line than you needed. <wink>
-Justin
More information about the Python-list
mailing list