Skip to content

Instantly share code, notes, and snippets.

@initbar
Created Dec 7, 2017
Embed
What would you like to do?
import os
import signal
PID = os.getpid()
def main():
k='%s'%'abs'
a=eval(k)
b=abs
print("%s"%hex(id(a)))
print("%s"%hex(id(b)))
try: assert a==b
except: pass
finally: os.kill(PID, signal.SIGUSR1) # << kill () sysacll
def do_nothing(*args):
pass
signal.signal(signal.SIGUSR1, do_nothing)
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment