Byte code descriptions somewhere?

Chris Angelico rosuav at gmail.com
Sun Oct 2 19:45:44 EDT 2016


On Mon, Oct 3, 2016 at 9:58 AM, Cem Karan <cfkaran2 at gmail.com> wrote:
>> To execute your own code, look at types.FunctionType and
>> types.CodeType, particularly the latter's 'codestring' argument
>> (stored as the co_code attribute). Be careful: you can easily crash
>> CPython if you mess this stuff up :)
>
> Ah, but crashing things is how we learn! :)
>

I never said not to do it, just to be careful :)

ChrisA



More information about the Python-list mailing list