#NEWLINE# def set_gender( self , gender ) : #NEWLINE# #INDENT# if ( gender in GENDERS ) : #NEWLINE# #INDENT# self . _data [ 'gender' ] = gender #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( ( 'value must be one of: %s' % ', ' . join ( ( ( '%s - %s' % ( k , v ) ) for ( k , v ) in enumerate ( GENDERS ) ) ) ) )