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

[pygame] [PATCH] Pythonish attribute access



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I've written a patch for pygame-1.6.2 that maps the C-style object functions 
into their Python-style equivalents. For instance,

S.colorkey = S[0, 0]

is equivalent to

S.set_colorkey(S.get_at((0, 0)))

The patch is available at

http://dias.moreira.nom.br/pygame-1.6.2-getset.patch

and a test script is available at

http://dias.moreira.nom.br/pygame_test.py

[]s,

- -- 
Fábio Dias Moreira
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFBPTa4alOQFrvzGQoRAg3BAJsHvrJIeAkt2cdSEJqnryob6SRPLgCghWlC
R3WEFatzdI4YjRrnBXiDptI=
=GYKR
-----END PGP SIGNATURE-----