def __options2hash(list):
 retval = {}
 counter = 0
 while (counter < len(list)):
  retval[list[counter]] = list[(counter + 1)]
  counter += 2
 __debug('__options2hash returning:', retval)
 return retval

def __options2hash ( list ) : retval = { } counter = 0 while ( counter < len ( list ) ) : retval [ list [ counter ] ] = list [ ( counter + 1 ) ] counter += 2 __debug ( '__options2hash returning:' , retval ) return retval
convert list [1 .