From: Mark B. <mb...@0x...> - 2000-04-19 04:25:36
|
On Tue, 18 Apr 2000, Eric Jacobs wrote: > I have a patch for PySDL 0.0.3 to allow any Python > file-like object to be loaded or saved as an image. > It also allows strings to be loaded as data. This > could be useful for games and other programs that > might not want to store all of their images in > individual files. I'll need to think about the real need of the introspection, but it seems like it'd be good to not only support file object, but "file-like" objects, as well. You mention MetaKit, for instance, which could alleviate hassles of back-end management. Using strings as a source of data, though, seems less useful. Flexible, perhaps, but it's not worth making the API nasty with an optional argument indicating whether a string is a filename, or a source of data. > And I hope someone's reading this list, because I > didn't see any messages in the archives... ;) PySDL is a fairly new project. The mailing list archives apparently work on a monthly basis, so the contents of the last few weeks won't be archived for a while. Thanks for the contribution. I'll probably work it into the next release, and alter the sound subsystem (which I'm currently working on) to use it as well. |