def object_attributes( thing, all=False ) :
standard_names = set( dir( object() ) )<EOL>things_names = set( dir( thing ) )<EOL>if not all :<EOL><INDENT>things_names -= standard_names<EOL>things_names |= set( ['<STR_LIT>'] )<EOL><DEDENT>return sorted( things_names )<EOL>
Return a sorted list of names defined by thing that are not also names in
a standard object, except include __doc__.