[Python-ideas] [Python-Dev] Dict access with double-dot (syntactic sugar)

Masklinn masklinn at masklinn.net
Thu Mar 24 22:45:50 CET 2011

On 2011-03-24, at 22:03 , Santoso Wijaya wrote:

> I just want to chip in that, as far as syntactic sugar go, `somedict:foo`
> looks better than `somedict..foo`.
> 2c...
> ~/santa
On the other hand, the colon is generally used for definitions (in Python, with the defined on the left side and the definition on the right one) not for accesses.

More information about the Python-ideas mailing list