By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,836 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

str() or repr()

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.