469,275 Members | 1,802 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

str() or repr()

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

Jul 18 '05 #1
0 1122

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by George Sakkis | last post: by
11 posts views Thread by Brent | last post: by
5 posts views Thread by Johny | last post: by
2 posts views Thread by adima | last post: by
reply views Thread by Gabriel Genellina | last post: by
16 posts views Thread by Christian Heimes | last post: by
14 posts views Thread by Russell E. Owen | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.