GoogleCloudPlatform/gcloud-python — pull request #294 by dhermes (2014-10-24 23:55:05+00:00)
Title: Makes operator checking deterministic in Query.filter.

The order of dictionary keys is not guaranteed between runs of
code so `expression`s ending in '>=' or '<=' were sometimes
matching for '='.

@pcostell the issue with flakiness was non-deterministic behavior of Python internals. Yay for finding the bug!

This was holding up #281, but it also forced us to use ancestor queries, which is a good thing.

@tseaver This is the quick-and-dirtiest way to fix this issue but I am a fan of changing from
```python
query.filter('foo >=', 10)
```
to
```python
query.filter('foo', '>=', 10)
```
WDYT?