Package wtf :: Module config :: Class TypedIterOption
[hide private]
[frames] | no frames]

Class TypedIterOption

source code

object --+
         |
        TypedIterOption

Option, typed dynamically

Provides an iterator of the single value list

Instance Methods [hide private]

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

Static Methods [hide private]
any
__new__(cls, value)
Create the final option type
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, value)
Static Method

source code 

Create the final option type

This gives the type a new name, inherits from the original type (where possible) and adds an __iter__ method in order to be able to iterate over the one-value-list.

The following type conversions are done:

bool
Will be converted to int
Parameters:
  • value (any) - The value to decorate
Returns: any
subclass of type(value)
Overrides: object.__new__