Python printing attributes with no __dict__
问题 I am having trouble with scripting bridge for python I am trying to list the attributes of the iTunes object iTunes = SBApplication.applicationWithBundleIdentifier_("com.apple.iTunes") using >>> from pprint import pprint >>> from Foundation import * >>> from ScriptingBridge import * >>> iTunes = SBApplication.applicationWithBundleIdentifier_("com.apple.iTunes") >>> pprint (vars(iTunes)) I get back Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: vars()