Is there a built-in fuction can convert any type of variable to string?

Aahz Maruch aahz at panix.com
Fri Jan 25 13:01:45 EST 2002


In article <a2s5mj$13vqrs$1 at ID-12869.news.dfncis.de>,
Ricky <store_li at sina.com> wrote:
>
>I look around python reference guide, but can't find a function which can
>convert any type of variable to string type?
>
>Is there any one or not?

str()

Look in the Library Reference under "built-in functions".
-- 
                      --- Aahz  <*>  (Copyright 2002 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

"I support family values -- Addams family values" --www.nancybuttons.com



More information about the Python-list mailing list