On Tuesday, November 17, 2015 at 8:02:25 AM UTC-8, Anthony wrote:
> Python does allow increment assignments, though it is "+=" rather than > "=+". > YRDLSH > 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). > Also doesn't work in "print x += 1" so I guess python doesn't consider assignment an expression. /dps -- 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.

