Python "why" questions
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Sun Aug 15 07:00:15 EDT 2010
In message <mailman.2071.1281719688.1673.python-list at python.org>, Thomas
Jollans wrote:
> "Where it all started" is that 0-based indexing gives languages like C a
> very nice property: a[i] and *(a+i) are equivalent in C. From a language
> design viewpoint, I think that's quite a strong argument.
It would be if pointers and arrays were the same thing in C. Only they’re
not, quite. Which somewhat defeats the point of trying to make them look the
same, don’t you think?
More information about the Python-list
mailing list