Make Python HHGTTG-compliant: >>> with open("/proc/self/mem","r+") as fd: ... fd.seek(id(6*9)+16) ... fd.write(chr(42)) ... >>> 6 * 9 42
-
-
portable! >>> ctypes.cast(id(54), ctypes.POINTER(ctypes.c_int))[6] = 42 >>> 6*9 42
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This Tweet is unavailable.
-
Now figure out a way to do it without the "import sys" :D
End of conversation
-
-
-
Portable may be : >>> with open("/proc/self/mem","r+b") as fd: ... http://fd.seek (id(6*9)+24 if 1/2 else 16) ... fd.write(bytes([42])) ...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.