def in_dict(obj, key, default=False):
    '\n    Returns true if key exists in obj.__dict__; false if not in.\n    If obj.__dict__ is absent, return default\n    '
    return ((key in obj.__dict__) if getattr(obj, '__dict__', None) else default)
Returns true if key exists in obj.__dict__; false if not in.
If obj.__dict__ is absent, return default
def in_dict(obj, key, default=False):
    '\n    Returns true if key exists in obj.__dict__; false if not in.\n    If obj.__dict__ is absent, return default\n    '
    return ((key in obj.__dict__) if getattr(obj, '__dict__', None) else default)