A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-March/109997.html below:

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

[Python-Dev] Dict access with double-dot (syntactic sugar) [Python-Dev] Dict access with double-dot (syntactic sugar)Dirkjan Ochtman dirkjan at ochtman.nl
Thu Mar 24 12:43:41 CET 2011
On Thu, Mar 24, 2011 at 12:40, Jameson Quinn <jameson.quinn at gmail.com> wrote:
> "class attrdict" is a perennial dead-end for intermediate pythonistas who
> want to save 3 characters/5 keystrokes for item access. Other languages such
> as javascript allow "somedict.foo" to mean the same as "somedict['foo']", so
> why not python? Well, there are a number of reasons why not, beginning with
> all the magic method names in python.

This should go on python-ideas.

Cheers,

Dirkjan
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4