def getEnumeratorKeysExceptForOneArgument(enumerator, keys):
 if (len(keys) == 0):
  return range(0, len(enumerator))
 beginIndex = keys[0]
 endIndex = keys[1]
 if (len(keys) == 2):
  if (beginIndex == None):
   beginIndex = 0
  if (endIndex == None):
   endIndex = len(enumerator)
  return range(beginIndex, endIndex)
 step = keys[2]
 beginIndexDefault = 0
 endIndexDefault = len(enumerator)
 if (step < 0):
  beginIndexDefault = (endIndexDefault - 1)
  endIndexDefault = (-1)
 if (beginIndex == None):
  beginIndex = beginIndexDefault
 if (endIndex == None):
  endIndex = endIndexDefault
 return range(beginIndex, endIndex, step)

def getEnumeratorKeysExceptForOneArgument ( enumerator , keys ) : if ( len ( keys ) == 0 ) : return range ( 0 , len ( enumerator ) ) beginIndex = keys [ 0 ] endIndex = keys [ 1 ] if ( len ( keys ) == 2 ) : if ( beginIndex == None ) : beginIndex = 0 if ( endIndex == None ) : endIndex = len ( enumerator ) return range ( beginIndex , endIndex ) step = keys [ 2 ] beginIndexDefault = 0 endIndexDefault = len ( enumerator ) if ( step < 0 ) : beginIndexDefault = ( endIndexDefault - 1 ) endIndexDefault = ( - 1 ) if ( beginIndex == None ) : beginIndex = beginIndexDefault if ( endIndex == None ) : endIndex = endIndexDefault return range ( beginIndex , endIndex , step )
get enumerator keys .