Every line of 'python see attributes of object' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
8 def give_attributes_of_object(obj): 9 result = {} 10 types_list = [str, int, float] 11 for name in dir(obj): 12 if type(obj.__getattribute__(name)) in types_list: 13 result[name] = obj.__getattribute__(name) 14 return result