Re: [Python-3000] PEP 368: Standard image protocol and class

2007-07-22 Thread Joe Smith
"Greg Ewing" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Joe Smith wrote: >> If the maintainers of most of the large packages that do imaging are >> willing >> to support this, >> and your code is good, I see absolutely no reason why this PEP would not >> be >> accepted. > > S

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-07-20 Thread Greg Ewing
Joe Smith wrote: > If the maintainers of most of the large packages that do imaging are willing > to support this, > and your code is good, I see absolutely no reason why this PEP would not be > accepted. Something that bothers me about it a little is that the core Python/C API seems like the wr

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-07-19 Thread Joe Smith
"Lino Mastrodomenico" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >2007/7/1, BJörn Lindqvist <[EMAIL PROTECTED]>: >> But I cannot see how it would solve the problem with to many image >> classes. The reason why PIL, PyGame and wxPython has different image >> classes is because eac

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-07-07 Thread Terry Reedy
Reference Implementation If this PEP is accepted, the author will provide a reference implementation of the new classes in pure Python (that can run in CPython, PyPy, Jython and IronPython) and a second one optimized for speed in Python and C, suitable for inclusion in th

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-07-03 Thread Edin Salkovic
Hi Lino, On 7/1/07, Lino Mastrodomenico <[EMAIL PROTECTED]> wrote: > ``__getitem__(integer) -> line`` > > Returns the line at the specified (y) position. Just some ideas to think about. 1) Have you considered adding a separate lines property to the Image protocol? 2) Does one, by default, w

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-07-01 Thread Lino Mastrodomenico
2007/7/1, BJörn Lindqvist <[EMAIL PROTECTED]>: > But I cannot see how it would solve the problem with to many image > classes. The reason why PIL, PyGame and wxPython has different image > classes is because each of them use different C functions for > manipulating said image classes. These differe

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-07-01 Thread Martin v. Löwis
>> The only way to get compatibility between the libraries is to create >> an image library in C _and_ get those libraries to start using it. >> > > They'll all quack the same way. (This is paraphrased in the PEP's > abstract, as far as I read it.) To the Python side, yes. But to the underlying

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-07-01 Thread Stargaming
BJörn Lindqvist schrieb: > Cool PEP! I really love the API for the Image class. A standard Image > class would be a useful addition to the standard library. > > But I cannot see how it would solve the problem with to many image > classes. The reason why PIL, PyGame and wxPython has different image

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-07-01 Thread BJörn Lindqvist
Cool PEP! I really love the API for the Image class. A standard Image class would be a useful addition to the standard library. But I cannot see how it would solve the problem with to many image classes. The reason why PIL, PyGame and wxPython has different image classes is because each of them us

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-06-30 Thread Lino Mastrodomenico
Here's the full text of the PEP's current draft, so you can comment directly on it (thanks to Collin Winter for the suggestion): PEP: 368 Title: Standard image protocol and class Version: $Revision: 56133 $ Last-Modified: $Date: 2007-06-30 21:07:03 +0200 (sab, 30 giu 2007) $ Author: Lino Mastrodom

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-06-30 Thread Robert Kern
Robert Kern wrote: > Lino Mastrodomenico wrote: >> Hi everyone, >> >> I have submitted a new PEP: >> >> http://www.python.org/dev/peps/pep-0368/ >> >> It starts from a Pete Shinners' suggestion and from the consideration >> that there are a lot of Python libraries that use image objects, but >>

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-06-30 Thread Robert Kern
Lino Mastrodomenico wrote: > Hi everyone, > > I have submitted a new PEP: > > http://www.python.org/dev/peps/pep-0368/ > > It starts from a Pete Shinners' suggestion and from the consideration > that there are a lot of Python libraries that use image objects, but > almost all of them have im

[Python-3000] PEP 368: Standard image protocol and class

2007-06-30 Thread Lino Mastrodomenico
Hi everyone, I have submitted a new PEP: http://www.python.org/dev/peps/pep-0368/ It starts from a Pete Shinners' suggestion and from the consideration that there are a lot of Python libraries that use image objects, but almost all of them have implemented their own image classes, incompatib