def getEvaluatedInt(defaultValue, elementNode, key):
 if (elementNode == None):
  return None
 if (key in elementNode.attributes):
  try:
   return getIntFromFloatString(getEvaluatedValueObliviously(elementNode, key))
  except:
   print 'Warning, could not evaluate the int.'
   print key
   print elementNode.attributes[key]
 return defaultValue

def getEvaluatedInt ( defaultValue , elementNode , key ) : if ( elementNode == None ) : return None if ( key in elementNode . attributes ) : try : return getIntFromFloatString ( getEvaluatedValueObliviously ( elementNode , key ) ) except : print 'Warning, could not evaluate the int.' print key print elementNode . attributes [ key ] return defaultValue
get the evaluated value as an int .