Curious assignment behaviour

Mikael Olofsson mikael at isy.liu.se
Fri Oct 19 02:33:02 EDT 2001


On 18-Oct-2001 Rainer Deyke wrote:
 >  "David C. Ullrich" <ullrich at math.okstate.edu> wrote in message
 >  news:3bcdbb39.1987133892 at news...
 > > What if you already have x = 42 and y = 24, and you
 > > say "let x = y" ? Does that set x to 24 (yes) or
 > > does it set y to 42?
 >  
 >  It means "consider the case 42 = 24".

And thus, we might be in the ring of integers mod n, where n is any 
integer among 2, 3, 6, 9, and 18.

/Mikael

-----------------------------------------------------------------------
E-Mail:  Mikael Olofsson <mikael at isy.liu.se>
WWW:     http://www.dtr.isy.liu.se/dtr/staff/mikael               
Phone:   +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date:    19-Oct-2001
Time:    08:21:34

         /"\
         \ /     ASCII Ribbon Campaign
          X      Against HTML Mail
         / \

This message was sent by XF-Mail.
-----------------------------------------------------------------------
Linköpings kammarkör: www.kammarkoren.com




More information about the Python-list mailing list