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
>>>

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to