def list_may_enroll(course_key, features):
 may_enroll_and_unenrolled = CourseEnrollmentAllowed.may_enroll_and_unenrolled(course_key)
 def extract_student(student, features):
  '\n        Build dict containing information about a single student.\n        '
  return dict(((feature, getattr(student, feature)) for feature in features))
 return [extract_student(student, features) for student in may_enroll_and_unenrolled]

def list_may_enroll ( course_key , features ) : may_enroll_and_unenrolled = CourseEnrollmentAllowed . may_enroll_and_unenrolled ( course_key ) def extract_student ( student , features ) : return dict ( ( ( feature , getattr ( student , feature ) ) for feature in features ) ) return [ extract_student ( student , features ) for student in may_enroll_and_unenrolled ]
return info about students who may enroll in a course as a dict .