In google appengine NDB there are queries like this:
query = Account.query(Account.userid >= 40)
How come the Account.userid >= 40 expression is not expanded at call time to true or false before passed as an argument? How is the filter expression passed to the query? Is it done with operator overloading?