Home | Trees | Indices | Help |
|
---|
|
object --+ | AttributeDef --+ | AtomicAttribute
A base class for attributes than can be immediately parsed and unparsed from strings.
They need to provide a parse method taking a unicode object and returning a value of the proper type, and an unparse method taking a value of the proper type and returning a unicode string suitable for parse.
Note that you can, of course, assign to the attribute directly. If you assign crap, the unparse method is explicitely allowed to bomb in random ways; it just has to be guaranteed to work for values coming from parse (i.e.: user input is checked, programmatic input can blow up the thing; I consider this pythonesque :-).
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Class Variables | |
Inherited from |
Properties | |
Inherited from |
Method Details |
|
|
|
|
returns a typed python value for the string representation value. value can be expected to be a unicode string. |
returns a typed python value for the string representation value. value can be expected to be a unicode string. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |