All pastes #837916 Raw Edit

Vermischtes

public text v1 · immutable
#837916 ·published 2007-12-30 00:19 UTC
rendered paste body
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import dbus
import sys
import os
import pickle
from dcopext import DCOPClient,DCOPApp
from random import randint

def getint(c1,c2,c3,c4,c5):
        n=0
	
        if (c1 >127) :
                c1 = c1-256

        if (c1==-128):
                n = c2
                n = n | c3<<8
                return n
        elif (c1==-127):
                n = c2
                n = n | c3<<8
                n = n | c4<<16
                return n | c5<<24
        else:
                return c1

def __main__():
        val = getint(129,51,110,1,0)
	print val

__main__()