Augmented Assignement (was: Re: PEP scepticism)

Paul Prescod paulp at
Sun Jul 1 06:30:38 CEST 2001

Rainer Deyke wrote:
> "Carlos Ribeiro" <cribeiro at> wrote in message
> news:mailman.993927046.4577.python-list at
> > As the current discussion about Augmented Assignment stands, I was
> > wondering if it was not better to make it invalid to use augmented
> > assignment on immutable types.
> Bad idea.  If anything, I would go the other direction and make it illegal
> for mutable types.  ...

This is the argument that froze augmented assignments in their tracks
for years. I was somewhat surprised when they finally made it in because
it was always clear in the discussions that any behaviour would confuse
about half of the population. That's usually where Python Refuses To

Take a recipe. Leave a recipe.  
Python Cookbook!

More information about the Python-list mailing list