def str2long(s):
    if type(s) not in (types.StringType, types.UnicodeType):
        raise ValueError, 'the input must be a string'

    l = 0L
    for i in s:
        l <<= 8
        l |= ord(i)

    return l
Called after all transport is teared down
dataset/ETHPy150Open androguard/androguard/androguard/core/androconf.py/str2long--crossover with--dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/south/plugins/async/twistedimpl/client_connection.py/UDPRawProtocol.stopProtocol