Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-11-01 Thread Bill Baxter
Martin v. Löwis v.loewis.de> writes: > > Bill Baxter schrieb: > > Basically in my code I want to be able to take the binary data descriptor > > and > > say "give me the 'r' field of this pixel as an integer". > > > > Is either

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-31 Thread Bill Baxter
One thing I'm curious about in the ctypes vs this PEP debate is the following. How do the approaches differ in practice if I'm developing a library that wants to accept various image formats that all describe the same thing: rgb data. Let's say for now all I want to support is two different image