def is_object(obj):
    'Returns True is obj is a reference to an object instance.\n\n    >>> is_object(1)\n    True\n\n    >>> is_object(object())\n    True\n\n    >>> is_object(lambda x: 1)\n    False\n    '
    return (isinstance(obj, object) and (not isinstance(obj, (type, types.FunctionType, types.BuiltinFunctionType))))
Returns True is obj is a reference to an object instance.

>>> is_object(1)
True

>>> is_object(object())
True

>>> is_object(lambda x: 1)
False
def is_object(obj):
    'Returns True is obj is a reference to an object instance.\n\n    >>> is_object(1)\n    True\n\n    >>> is_object(object())\n    True\n\n    >>> is_object(lambda x: 1)\n    False\n    '
    return (isinstance(obj, object) and (not isinstance(obj, (type, types.FunctionType, types.BuiltinFunctionType))))