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 usttribute 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.


Download from: Homepage




Author:
admin
Time:
Saturday, May 24th, 2008 at 12:48 pm
Category:
Programming Methods - Algorithms, Security Systems
Comments:
You can leave a response, or trackback from your own site.
RSS:
You can follow any responses to this entry through the RSS 2.0 feed.
Navigation:

Leave a Reply