You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a really tricky program to decompile distilled from sre.py
# From python 3.4 sre.pyc
while 1:
if __file__:
while 1:
if __file__:
break
raise RuntimeError
else:
raise RuntimeError
while 1:
if __file__:
if __name__:
raise RuntimeError
else:
# flags
while __name__:
group = 5
while 1:
if __name__:
while 1:
if y:
break
raise RuntimeError
elif __file__:
x = 2
else:
raise RuntimeError
Shorter versions of the above, just the first while 1 loop on Python 3.0 gives
Warning: block stack is not empty!
while __file__:
while __file__:
break
raise RuntimeError
continue
continue
raise RuntimeError
continue
return None
While on Python 3.1 I've gotten get SEGV's. I am pretty sure newer versions of Python will give similiar results
A disassembly of the shorter version shows why this is hard:
Here is a really tricky program to decompile distilled from sre.py
Shorter versions of the above, just the first while 1 loop on Python 3.0 gives
While on Python 3.1 I've gotten get SEGV's. I am pretty sure newer versions of Python will give similiar results
A disassembly of the shorter version shows why this is hard:
The second and inner
SETUP_LOOP
has as it closing target a location that is strictly outside of its source-code range.The text was updated successfully, but these errors were encountered: