Python Database Row Module defines light-weight objects which allow very flexible access to a fixed number of positional and named attributes via several interfaces. Or, more simply, these objects are a better way of returning the results of database queries, since they allow efficient access to fields by name or by index. It uses some of the new features of the Python 2.2 class system, and provide a nice demonstration of how to take advantage of them.
|
|