str() or repr()
tcronj
tcronj2spam at me.not.ananzi.coza
Thu Feb 12 13:14:52 EST 2004
Have reasently upgraded to PySQLite 0.5.
I now have to "typecast" returned values to the "string expecting" GUI
widgets (wxPython).
Afrer reading the explanation, I'm still not clearer wich is better to
use... str() or repr()
example: self.wxTextCtrl.Setvalue( str(val["typedate"]))
## or repr(val["typedate"])
self.wxTextCtrl.Setvalue( str(val["typefloat"]))
## or repr(val["typefloat"])
TIA.
T
More information about the Python-list
mailing list