Home | Trees | Indices | Help |
|
---|
|
:mod:`recsql.convert` --- converting entries of tables ====================================================== .. autoclass:: Autoconverter :members: __init__ .. function:: Autoconverter.convert(x) Convert *x* (if in the active state) .. attribute:: Autoconverter.active If set to ``True`` then conversion takes place; ``False`` just returns :func:`besttype` applid to the value. .. autofunction:: besttype .. autofunction:: to_unicode
|
|||
Autoconverter Automatically convert an input value to a special python object. |
|
|||
|
|||
|
|||
|
|
Convert obj to unicode (if it can be be converted) from http://farmdev.com/talks/unicode/ |
Convert string x to the most useful type, i.e. int, float or unicode string. If x is a quoted string (single or double quotes) then the quotes are stripped and the enclosed string returned. .. Note:: Strings will be returned as Unicode strings (using :func:`unicode`), based on the *encoding* argument, which is utf-8 by default. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jun 3 22:23:16 2010 | http://epydoc.sourceforge.net |