[Tutor] pointers in python

Lloyd Kvam pythontutor@venix.com
Fri, 07 Dec 2001 10:12:12 -0500


Python variables are pointers to the memory locations that hold the Python objects.

HOWEVER, there is no pointer arithmatic and you don't actually deal with those addresses.
The id function returns a value that is based upon the memory address.  This lets you
see if two objects with the same content are actually the same object.

python_sun wrote:

> hi all,
>  i am newbie in python i am aware with C. How python handle Pointers. if U know please help.
> 
> python_sun@indiatimes.com 
> Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
> 
>  Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 


-- 
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358

voice: 
603-443-6155
fax: 
801-459-9582