> Error message #3
>>
>> No error message - this overwrites cumulative amount to the amount 
>> entered by the user, no memory.
>>
>
> Python doesn't have the increment assignment operator, so number 3 is 
> being taken as
>
> cumulative_amount = NULL + form.vars.amount
>
>
Python does allow increment assignments, though it is "+=" rather than 
"=+". Perhaps you meant that it cannot be used when passing function 
arguments, as in this case (i.e., you can't do myfunc(arg+=some_value), 
which obviously wouldn't make sense, as "arg" doesn't have any value to 
increment).
 
Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to