On Thursday, April 25, 2013 7:11:17 PM UTC-4, Massimo Di Pierro wrote: > &= is now in trunk but one cannot do
I think it's always been possible to do &= with Query objects because the __and__ method is defined. What was recently added was __rand__ and __ror__, which according to http://docs.python.org/2/reference/datamodel.html#emulating-numeric-types allows binary operations with swapped operands. So, if you have A & B, and A doesn't implement the __and__ method but B implements the __rand__ method, then it will execute B.__rand__(A). Not sure what the use case is for queries, though. Anthony -- --- 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/groups/opt_out.

