list vs tuple
Darren New
dnew at san.rr.com
Sat Mar 31 19:26:40 EST 2001
deadmeat wrote:
> but thats not the point - which when the statement a = b copies the data
> across for one type it's expected to do it for others. It doesn't, so it's
> inconsistant, contrary to the original claim.
Python doesn't copy integers either.
In python, you'd write
a = 5
b = a
b = 9
and a would still be 5 and b would still be 9.
The equivalent in Pascal would be
a, b, five, nine : ^integer;
five^ = 5; { ignoring "new" for now }
nine^ = 9;
a = five;
b = a;
b = nine;
What's the problem?
--
Darren New / Senior MTS & Free Radical / Invisible Worlds Inc.
San Diego, CA, USA (PST). Cryptokeys on demand.
schedule.c:7: warning: assignment makes calendar_week
from programmer_week without a cast.
More information about the Python-list
mailing list