Memory addressing
Alex Martelli
aleax at mac.com
Sat Apr 28 14:31:36 EDT 2007
Steven D'Aprano <steve at REMOVE.THIS.cybersource.com.au> wrote:
> On Fri, 27 Apr 2007 16:07:57 -0700, castironpi wrote:
>
> > That's what we need: a CopyMemory() routine.
>
> What we _really_ need are Poke() and Peek() routines.
You can easily write them with ctypes (it's part of the standard library
now, too) -- at least on systems where you can easily access the C
runtime library as a dynamic library, such as Windows, Linux, and
MacOSX, but I imagine it wouldn't be that much harder on others (I
haven't really looked in depth at the lowest-level functionality offered
by ctype, as the higher-level stuff is plenty sufficient to get a lot of
core dumps:-).
Alex
More information about the Python-list
mailing list