Dictionary with attribute-style access

Category: Python - Education

This script defines a dictionary with attribute-style access. It maps attribute access to the real dictionary.It can be easier to read and type data access using the simpler attribute syntax (one dot), that using a lot of square-brackets and quotes. Of course, your key must match a valid identifier string for this to work. If it doesn't you can still use the traditional item access syntax. Date: 13 May, 2012


Dictionary Access - Attribute Access - Map Access - Dictionary - Attribute - Access

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This script presents a way to introduce proper attribute access protection levels using a generic proxy object.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Scrabble Dictionary is both a dictionary and word builder for Scrabble®-like games.

developer Developer: scrabbledict
license License: GNU General Public License (GPL)
operating systems Operating System: OS Independent (Written in an interpreted language)


This is a great way to get repeat visitors.

developer Developer: Intelliscript.net
license License: Freeware
operating systems Operating System: Linux, Unix, Windows


Have you ever thought of adding a Vocabulary List to your site.

developer Developer: t-dreams.com
license License: Freeware
operating systems Operating System: All


This script allows you to record the order in which items are added.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script is a template for a program that opens, saves, deletes and adds entries to a dictionary object.

developer Developer: ww25.uselesspython.com
license License: Freeware
operating systems Operating System: All


Glossword Glossary Compiler helps you to create and publish online multilingual dictionary, glossary, or reference.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All


This script provides an alternative way of generating and updating dictionaries.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script deals with a collection groups a set of objects together and forwards attribute lookups to all elements of the collection that contain the desired attribute.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All