Sujet : Re: in-memory editing with EDT or EVE
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 25. Nov 2024, 01:33:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vi0gkp$2f1do$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Pan/0.161 (Chasiv Yar; )
On Sun, 24 Nov 2024 19:27:35 -0500, Arne Vajhøj wrote:
And using a normal shareable image and ctypes, then it also works in
Python:
Soon as you mentioned “ctypes”, I had to have a look. ;)
I’m not a fan of wildcard imports. I know you tend to need a lot of stuff
from ctypes, but I prefer to do
import ctypes as ct
so you can then write
memedit.memedt.argtypes = [ct.c_char_p, ct.c_char_p, ct.c_int]
memedit.memedt.restype = ct.c_int
etc.