[Tutor] Does Python have pointers?

Max Noel maxnoel_fr at yahoo.fr
Fri Oct 1 20:16:43 CEST 2004


On Oct 1, 2004, at 19:02, Mark Kels wrote:

> Hi all,
>
> I want to make an interpreter for BF (more info -
> http://home.wxs.nl/~faase009/Ha_BF.html) in Python.
> To do it I guess I need to use pointers, but I never heard about
> pointers in Python...
> Can Python work with pointers (or anything else that can be useful) ?
> If not, what do I need to do to write this project ?

	The way I understand it, in Python, all variable names are references. 
IOW, all variables are pointers. Now, if you need pointers to directly 
access memory addresses (something akin to PEEK and POKE in old-school 
BASIC), I don't think that's possible in Python (or in any other 
language on a reasonably modern OS AFAIK).

-- Wild_Cat
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting 
and sweating as you run through my corridors... How can you challenge a 
perfect, immortal machine?"



More information about the Tutor mailing list