The meaning of "=" (Was: tough-to-explain Python)

greg greg at cosc.canterbury.ac.nz
Sat Jul 11 21:34:27 EDT 2009


Lawrence D'Oliveiro wrote:

> Interesting, though, that Python insists on maintaining a distinction 
> between c["x"] and c.x, whereas JavaScript doesn't bother.

And that distinction is a good thing. It means, for
example, that dictionaries can have methods without
colliding with the key space of the items put into
them.

-- 
Greg



More information about the Python-list mailing list