pitfall for your amusement

Neil Schemenauer nas at python.ca
Wed Nov 13 08:52:13 EST 2002


Gustavo Niemeyer wrote:
> > This note is mostly for entertainment purposes.
> > 
> > >>> x = (1, 2, 3)
> [...]
> > >>> x += (4, 5, 6)
> 
> Hey, shouldn't this raise an exception?

Should:

    x = 1
    x += 1

raise an exception?

  Neil




More information about the Python-list mailing list