Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Update math.c #360
Replace ob_item access in math.c with macros so pygame compiles in pypy.
(Thanks to Armin Rigo of Pypy for suggesting how to do this).
With this change, pygame seems to work in pypy.
I tried all the examples, the only problems seemed to be:
Errors on any keyboard events e.g.
The fastevents example seemed to be frozen, all the examples displayed graphics and played sounds.
My lack of C knowledge showing there.
Now, all the math tests pass under pypy except
NOTE - you need to first apply the cython patch in my other pull request for this to work.