def _getAttributes(obj):
if isinstance(obj, dict):<EOL><INDENT>attrs = obj<EOL><DEDENT>elif hasattr(obj, "<STR_LIT>"):<EOL><INDENT>attrs = {attr: getattr(obj, attr) for attr in obj.__slots__}<EOL><DEDENT>elif hasattr(obj, "<STR_LIT>"):<EOL><INDENT>attrs = obj.__dict__<EOL><DEDENT>testParams = SERIALIZABLE_SUBCLASSES[obj.__class__.__name__]<EOL>if "<STR_LIT>" in testParams:<EOL><INDENT>for f in testParams["<STR_LIT>"]:<EOL><INDENT>if f in attrs:<EOL><INDENT>del attrs[f]<EOL><DEDENT><DEDENT><DEDENT>return attrs<EOL>
Get all attributes of the given object