Faqts : Business : Programming : Shopping For You : Python : Common Problems : Strings

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

12 of 15 people (80%) answered Yes
Recently 7 of 10 people (70%) 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. :)