Zope/DTML Infuriating...
Marco Mariani
marco at sferacarta.com
Tue Apr 29 07:59:07 EDT 2008
Jens wrote:
> I've the checked that i'm referring to the variables correctly, so the
> only explanation i can come up with, is that '+' doesn't result in a
> string concatenation (with implicit typecast to string of the integer
> variable(this is a interpreted language after all)).
No, sorry. You really need to read the python tutorial at the very least.
You might have wrong assumptions from previous PHP experiences.
>>> 'x'+4
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: cannot concatenate 'str' and 'int' objects
>>>
More information about the Python-list
mailing list