Liste des Groupes | Revenir à co vms |
On Sun, 24 Nov 2024 19:27:35 -0500, Arne Vajhøj wrote:I have an algorithm to decide whether to wildcard importAnd using a normal shareable image and ctypes, then it also works inSoon as you mentioned “ctypes”, I had to have a look. ;)
Python:
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.
Les messages affichés proviennent d'usenet.