Conditional Expressions don't solve the problem

Markus Schaber use-net at schabi.de
Thu Oct 18 04:58:04 EDT 2001


Hi,

On 18 Oct 2001 00:53:43 -0700, salemail at dial.pipex.com (Kevin D) wrote:

> My suggesting is not trying to "save keystrokes" - it's trying to save
> duplication of an expression that doesn't _need_ to be written twice.
> This is one of the arguments that got augmented assignment into the
> language.

In some cases, it's even wrong to write the expression twice - it may have side effects (readline etc.).

markus
-- 
You don't have to be Microsoft to suck... but it helps.
(Tim Hammerquist in comp.lang.python)



More information about the Python-list mailing list