Package gavo :: Package utils :: Module fancyconfig :: Class IntConfigItem
[frames] | no frames]

Class IntConfigItem

source code

object --+    
         |    
ConfigItem --+
             |
            IntConfigItem

A config item containing an integer.

It supports a Null value through the special None literal.

>>> ci = IntConfigItem("foo"); print ci.value
None
>>> ci = IntConfigItem("foo", default="23"); ci.value
23
>>> ci.set("42"); ci.value
42
>>> ci.getAsString()
'42'
Instance Methods

Inherited from ConfigItem: __init__, getAsString, set

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  typedesc = 'integer'
  default = 'None'
Properties

Inherited from object: __class__