Trees Indices Help
Trac
Package trac :: Module config :: Class IntOption

Class IntOption

source code

object --+ 
 | 
 Option --+
 |
 IntOption

Descriptor for integer configuration options.
Instance Methods
accessor(self, key, default='')
Return the value of the specified option as integer. source code

Inherited from Option : __get__ , __init__ , __repr__ , __set__

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

Static Methods

Inherited from Option : get_registry

Class Variables

Inherited from Option : registry

Properties

Inherited from object: __class__

Method Details

accessor(self, key, default='')

source code

Return the value of the specified option as integer.

If the specified option can not be converted to an integer, a ConfigurationError exception is raised.

Valid default input is a string or an int. Returns an int.

Overrides: Section.get

Trees Indices Help
Trac

AltStyle によって変換されたページ (->オリジナル) /