[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] [PATCH] Pythonish attribute access



Richard Jones wrote:
S.colorkey = S[0, 0]
That's *way* kewl! Petey, can we please have this in the next release? :)
Well, it won't be the 'next' release. Pygame's stewy beginnings actually had a few different ways for setting different properties. It kind of mirrored how you work the the SDL_Surface objects in C. In the end I
chose a mostly consistent design to handle all these values.

I haven't sat down to think about it yet, but I imagine there are a few lurking problems with these types of accessors. I'm mainly worred about surprising side effects.