def getp(obj, property=None):
 if (property is None):
  insp = ArtistInspector(obj)
  ret = insp.pprint_getters()
  print(u'\n'.join(ret))
  return
 func = getattr(obj, (u'get_' + property))
 return func()

def getp ( obj , property = None ) : if ( property is None ) : insp = ArtistInspector ( obj ) ret = insp . pprint_getters ( ) print ( u'\n' . join ( ret ) ) return func = getattr ( obj , ( u'get_' + property ) ) return func ( )
return the value of objects property .