[Tutor] variable assignment

Bob Gailer ramrom@earthling.net
Fri Jan 3 01:29:06 2003


--=======18DC78B1=======
Content-Type: text/plain; x-avg-checked=avg-ok-1AB03CC0; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit

At 11:18 PM 1/2/2003 -0700, Poor Yorick wrote:

>  In the following code, I halfway expected the final print statement to 
> produce the same number the other three print statements produced.

Why?

Try printing the 4 expressions inside the id()
'e'
'e'
'e'
'hello'
I certainly hope that 'hello' would not have the same id as 'e'!
Perhaps you want print id(ins2.d[1][0])?

Bob Gailer
mailto:ramrom@earthling.net
303 442 2625

--=======18DC78B1=======
Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-1AB03CC0
Content-Disposition: inline


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.431 / Virus Database: 242 - Release Date: 12/17/2002

--=======18DC78B1=======--