pointer
Michael Hudson
mwh at python.net
Tue Apr 9 12:28:12 EDT 2002
"Andrey Panchenko" <andrey at app.omsk.su> writes:
> I think it's rather an ambiguous statement. I can think that after
>
> a = 1
> b = a
> a = 3
>
> b must hold 3. But it's not true.
True.
> IMHO it's better to say that the python names are like pointers only
> for mutable objects.
No, this implies a distinction that doesn't exist, IMHO.
It's best not to mention pointers at all, people who know C just get
the wrong idea.
Cheers,
M.
--
The bottom tier is what a certain class of wanker would call
"business objects" ... -- Greg Ward, 9 Dec 1999
More information about the Python-list
mailing list