Comment 1 for bug 1638931

Revision history for this message
lawrence peng (kaihuan-pkh) wrote :

hi, Scott, as we discussed before, I need execute a `cpuid` assembly code in python, so I think I should write a bit of C code which inline the assemly and compile it as a library, then call it in python by using the ctypes lib.

I wonder to know is this plan could be feasible ? because of cloud-init source code is pure python, if I add the C code, it must compile when installed.

the another hand, there are some third library module in python which could execute assembly, maybe I could import these module instead of write by myself ?

thx ~