| Home | Trees | Indices | Help |
|---|
|
|
Simple error checking attributes.
This module defines a set of Attribute classes which you can use to define possible values an attribute of an object accepts.
Usage:
class SomeObject:
nameAttr, posAttr = [ Attr("name"), PointAttr("pos") ]
obj = SomeObject()
obj.nameAttr.set(obj,"newName")
obj.posAttr.set(obj,"89,89")
This is most useful for error checking parsing and defining accepted attributes in classes and is used by pychan internally.
|
|||
|
Attr A simple text attribute. |
|||
| UnicodeAttr | |||
| PointAttr | |||
| ColorAttr | |||
| IntAttr | |||
| BoolAttr | |||
| FloatAttr | |||
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Feb 10 00:00:30 2012 | http://epydoc.sourceforge.net |