[Python-Dev] PEP 298
Thomas Heller
theller@python.net
12 Dec 2002 21:22:10 +0100
martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) writes:
> Having looked at the PEP for the first time, I have a number of
> comments:
>
> - I think there must be a way to obtain the address of the buffer on
> the Python level, see
>
> http://tinyurl.com/3h79
>
> Using /dev/poll on Solaris requires a way to create a struct whose
> address you know.
Do you know my ctypes module? http://tinyurl.com/2tyx
It allows to create Python objects which internally look like C data
types. Able to access and create structures, unions, pointers, and
such. And you do it (IMO) in a natural way.
The released package currently only runs under windows, although I have
a prototype working under Linux.
Thomas