[Zope] integer to string?

Mike Pelletier mike@compar.com
Thu, 6 May 1999 15:16:20 -0400 (EDT)


On Thu, 6 May 1999, Philip Aylesworth wrote:

> How do I convert an integer to a string?

    In Python, backticks turn any expression into a string.  So this--

> <!--#var "'c' + _['sequence-item']"-->

    --which probably gives you an incompatible types exception, would work if
it were expressed like this:

  <!--#var "'c' + `_['sequence-item']`"-->

Mike.

-- 
       ---              | Mike Pelletier             Work: 519-746-1607
        /opeware!       | Software Developer         Home: 519-725-7710
       ---              | mike@zopeware.com           Fax: 519-746-7566
http://www.zopeware.com | Zopeware is not endorsed by Digital Creations