Package gavo :: Package base :: Module typesystems :: Class ToPythonConverter
[hide private]
[frames] | no frames]

Class ToPythonConverter

source code

      object --+    
               |    
FromSQLConverter --+
                   |
                  ToPythonConverter

returns constructors making python values from strings.

This is only for non-fancy applications with controlled input. For more general circumstances, you'll want to use the parsing infrastructure.

Instance Methods [hide private]
 
mapComplex(self, type, length) source code

Inherited from FromSQLConverter: convert

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  typeSystem = 'python'
  simpleMap = {'bigint': <type 'int'>, 'boolean': <type 'int'>, ...

Inherited from FromSQLConverter (private): _charTypes

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

mapComplex(self, type, length)

source code 
Overrides: FromSQLConverter.mapComplex

Class Variable Details [hide private]

simpleMap

Value:
{'bigint': <type 'int'>,
 'boolean': <type 'int'>,
 'char': <type 'unicode'>,
 'date': <function toPythonDate at 0x8b67b54>,
 'double precision': <type 'float'>,
 'file': <function <lambda> at 0x8b67c6c>,
 'float': <type 'float'>,
 'integer': <type 'int'>,
...