def _is_pair(obj):
  return isinstance(obj, tuple) and len(obj) == 2
Helper to test if something is a pair (2-tuple).
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/memcache/__init__.py/_is_pair