471,888 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,888 software developers and data experts.

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 1222

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
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.