(self, key, value)
Set the specified value for an gene of List

      >>> g = G1DBinaryString(5)
      >>> for i in xrange(len(g)):
      ...    g.append(1)
      >>> g[4] = 0
      >>> g[4]
      0
Set the specified value for an gene of List
Set the specified value for an gene of List
def __setitem__(self, key, value):
      """ Set the specified value for an gene of List

      >>> g = G1DBinaryString(5)
      >>> for i in xrange(len(g)):
      ...    g.append(1)
      >>> g[4] = 0
      >>> g[4]
      0

      """
      if value not in (0, 1):
         Util.raiseException("The value must be zero (0) or one (1), used (%s)" % value, ValueError)
      G1DBase.__setitem__(self, key, value)
def __setitem__ ( self , key , value ) : if value not in ( 0 , 1 ) : Util . raiseException ( "The value must be zero (0) or one (1), used (%s)" % value , ValueError ) G1DBase . __setitem__ ( self , key , value )