faqts : Computers : Programming : Languages : Python : Common Problems : Strings

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 10 people (80%) answered Yes
Recently 5 of 7 people (71%) answered Yes

Entry

Is there any way to FORCE fields to be of string?

May 15th, 2000 05:51
unknown unknown, Courageous (identity == Joe Kraska?)


Yes:

        str = "myinteger is: " +`i`

This works for any python object, generally, although
sometimes the results aren't pretty. :)