1 2 3 4 5 6 7 8 9 10
#!/usr/bin/python import _balkan p = _balkan.readTable('/dev/hda') for i in range(0, len(p) - 1): (type, start, size) = p[i] if (type != -1): print "i:", i, p[i]