Demo entry 6635044

upgrade 9p code to python3.

   

Submitted by anonymous on Aug 16, 2017 at 10:23
Language: Python 3. Code size: 498 Bytes.

P9sk1.py

58 k64 = [k[0]>>1,
59 (k[1]>>2) | (k[0]<<6),
60 (k[2]>>3) | (k[1]<<5),
61 (k[3]>>4) | (k[2]<<4),
62 (k[4]>>5) | (k[3]<<3),
63 (k[5]>>6) | (k[4]<<2),
64 (k[6]>>7) | (k[5]<<1),
65 k[6]<<0]

141 idx = m - m%7

296 treq[0] = AuthTreq;


cl.py

17 return bits[(mode>>s) & 7]

188 x = self._open(name, P9.OWRITE|P9.OTRUNC)


debug.py

11 import sys


linaudio.py

24 return dir | (sz<<16) | (ord(type)<<8) | nr

30 return _IOC(_IOC_WRITE|_IOC_READ, type, nr, sz)

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).