def input_select_objects(prompt, objs, rep):
 choice = input_options((u'y', u'n', u's'), False, (u'%s? (Yes/no/select)' % prompt))
 print()
 if (choice == u'y'):
  return objs
 elif (choice == u's'):
  out = []
  for obj in objs:
   rep(obj)
   if input_yn((u'%s? (yes/no)' % prompt), True):
    out.append(obj)
   print()
  return out
 else:
  return []

def input_select_objects ( prompt , objs , rep ) : choice = input_options ( ( u'y' , u'n' , u's' ) , False , ( u'%s? (Yes/no/select)' % prompt ) ) print ( ) if ( choice == u'y' ) : return objs elif ( choice == u's' ) : out = [ ] for obj in objs : rep ( obj ) if input_yn ( ( u'%s? (yes/no)' % prompt ) , True ) : out . append ( obj ) print ( ) return out else : return [ ]
prompt to user to choose all .