|
From: Ray K. <rh...@ne...> - 2000-09-19 01:59:12
|
Pete Shinners wrote: > > > Is the source to pysdl ever going to end up in cvs? > > > Attached is a patch for what appears to be a memory leak in the > > event polling/waiting functions. > > this is a good question. i saw this leak also, and reported it > as a bug to Mark last week. i've got another submittal waiting > with no response as well. for now i've decided to wait off on > working with the "core" pysdl, since development seems backed up. At this point, I have a bit of a dilemma. Mark, Pete, and anyone else who is interested, read on: I'm the author of SDL_gui, and one of the intentions of SDL_gui is to allow it to be mixed with "normal" SDL code to provide GUI capability in multimedia applications. I've written a python binding for the library, and wish to provide support for using pysdl to access those "normal" SDL functions. If I don't allow the use of pysdl to do that, then I have to duplicate much of the functionality that it has, which is something I don't really want to do. I want to be able to pass in pysdl surfaces and such to my gui functions. The python bindings for SDL_gui are being used in a project for my day job, so I *have* to provide this kind of support to it. In order to do this, I need access to internal functions and structures that are defined in sdlmodule.h, of which many are declared static. I've done this before with other python modules, with a pretty good success rate. The only problem I've had in the past is that you need to import the module that is being referenced BEFORE importing the module that needs to reference it (In this case, import sdl, then SDL_gui). I had another idea for how to implement it, but it involves making a shared lib that lives in /usr/lib (or wherever) that contains the common code. Regardless of how it's implemented, it could mean some large scale changes to pysdl, so I thought it would be best to ask you guys, specifically Mark, if this is something that you'd like to see happen, or am I stepping out of place here? -Ray |