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
-
Show this thread
-
Python3 update: >>> with open("/proc/self/mem","r+b") as fd: ... http://fd.seek (id(6*9)+24) ... fd.write(bytes([42])) ... >>> 6 * 9 42
3 replies 8 retweets 24 likesShow this thread -
This Tweet is unavailable.
-
Replying to @riking27
Now figure out a way to do it without the "import sys" :D
1 reply 0 retweets 0 likes -
This Tweet is unavailable.
-
Well, you also have __import__("sys").whatever
1 reply 0 retweets 0 likes
Replying to @SnatchTheWig @riking27
8*int(2.5+1/2) isn't too bad and quite short.
6:24 AM - 4 Apr 2018
0 replies
0 retweets
0 likes
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.