>> 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 C library, some quack, some bark. How would you pass a Tkinter.PhotoImage to wxPython if both supported the PEP? wxPython would likely be able to produce objects that provide the Image interface, but I can't see how wxPython could consume such a thing - the underlying C libraries surely expect something completely different. The only way I can see this work is if each library imports Image objects by copying them, pixel for pixel, through this interface. Regards, Martin _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com