Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 320 Bytes
def countdown(n):
while n > 0:
print('T-minus', n)
n -= 1
print('Blastoff!')
import dis
#print(dis.dis(countdown))
#print(countdown.__code__.co_code)
c = countdown.__code__.co_code
import opcode
print(opcode.opname[c[0]])
print(opcode.opname[c[3]])
opcode.opname[c[3]]
opcode.opname[c[0]]
You can’t perform that action at this time.