Probably simple syntax error

Cameron Laird claird at lairds.us
Mon Jul 2 13:05:57 EDT 2007


In article <1183352843.803263.82140 at 57g2000hsv.googlegroups.com>,
Mark Peters  <mpeters42 at gmail.com> wrote:
			.
			.
			.
>Square brackets indicate the index into a sequence (like a list)
>

I'm wary of this line, especially in isolation.  I hope it reduces,
rather than exacerbates, the original questioner's confusion, for me
to observe that [] *also* mark dereferencing into a dictionary (hash,
associative array, ...), which is distinct from list indexing.



More information about the Python-list mailing list