Next / Previous / Contents / Shipman's homepage

23. Sox._typeRouter(): Mapping of content parameter types to converter functions

This class dictionary relates the types of parameters that can be passed to Sox.start() (and similar methods) to the corresponding conversion function. The functions in this table must implement the interface described by Section 8.1, “content-processor.
# - - -   S o x . _ t y p e R o u t e r

    _typeRouter = {
        unicode: _unicodeProcessor,
        str: _strProcessor,
        int: _intProcessor,
        bool: _boolProcessor,
        dict: _dictProcessor }