def getIntFromGet(request,key):
    '''
    This function just parses the request GET data for the requested key,
    and returns it as an integer, returning none if the key is not
    available or is in incorrect format.
    '''
    try:
        return int(request.GET.get(key))
    except (ValueError, TypeError):
        return None
def getIntFromGet ( request , key ) : try : return int ( request . GET . get ( key ) ) except ( ValueError , TypeError ) : return None
This function just parses the request GET data for the requested key,
    and returns it as an integer, returning none if the key is not
    available or is in incorrect format.