Changing Procesor Flags and word state From Python

Cary O'Brien cobrien at Radix.Net
Wed Dec 20 12:09:08 EST 2000


In article <t3hg1fpdpvkg7d at corp.supernews.com>,
Jose Martin <joseamartin at venmex.com> wrote:
>Is there any way to work with CPU registers and the flags directly from
>python?
>

You would have to write a C extension that executed (probably via asm code)
the instructions. 

Or (in unix) you could write a suid-root program in C that did it.

-- cary



More information about the Python-list mailing list