| Deutsch English Français Italiano |
|
<vi0gkp$2f1do$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.os.vms
Subject: Re: in-memory editing with EDT or EVE
Date: Mon, 25 Nov 2024 00:33:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <vi0gkp$2f1do$2@dont-email.me>
References: <vhr9ct$1dilp$1@dont-email.me> <vhrd3u$1dqca$3@dont-email.me>
<vhsm4i$1nfvc$1@dont-email.me> <vhsotb$rki$1@reader2.panix.com>
<vht5qt$1qel2$1@dont-email.me> <vht6v1$1qfvl$1@dont-email.me>
<vhtd6v$1rl0c$1@dont-email.me> <vhttf3$1u7an$1@dont-email.me>
<vhu4gg$1v7cm$1@dont-email.me> <vhu6uc$20p3q$1@dont-email.me>
<6742a745$0$707$14726298@news.sunsite.dk>
<6743c477$0$707$14726298@news.sunsite.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 25 Nov 2024 01:33:29 +0100 (CET)
Injection-Info: dont-email.me; posting-host="382ad7ab0575480e8209ed388edbd402";
logging-data="2590136"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19y9CGFN7A+a3h5CCBFEs6p"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:jOpNtYiQ7iQHi6G74xWDtWHi1EQ=
Bytes: 1817
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.