SystemError while execing bad code
Skip Montanaro
skip at pobox.com
Wed Jan 21 15:32:26 EST 2004
Gerrit> exec CodeType(0,0,0,0,"",(),(),(),"","",0,"")
...
Gerrit> But I guess this is a case of "so don't do it" :-)?
Michael> Definitely. It's easy enought to crash the interpreter this
Michael> way (think LOAD_CONST 30000, for just one easy way).
In fact, help(types.CodeType) describes it thusly:
Create a code object. Not for the faint of heart.
Should this sort of stuff be published on the Wiki?
Skip
More information about the Python-list
mailing list