GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
python.core.KeyValue Class Reference
Inheritance diagram for python.core.KeyValue:
Collaboration diagram for python.core.KeyValue:

Public Member Functions

def __getattr__
 
def __setattr__
 

Detailed Description

A general-purpose key-value store.

KeyValue is a subclass of dict, but also allows entries to be read and
written using attribute syntax. Example:

\code
>>> region = grass.region()
>>> region['rows']
477
>>> region.rows
477
\endcode

Definition at line 482 of file core.py.

Member Function Documentation

def python.core.KeyValue.__getattr__ (   self,
  key 
)

Definition at line 497 of file core.py.

def python.core.KeyValue.__setattr__ (   self,
  key,
  value 
)

Definition at line 500 of file core.py.


The documentation for this class was generated from the following file: