Hello! Yes, I've been looking continously at your source codes, I saw you were getting your Python C structs together yesterday, nice. My first advice would be this: all types/classes must start with capital case letter. I saw in your documentation that your prototype API used lowercase, I think we should try sticking with the Python style guide http://www.python.org/dev/peps/pep-0008/ which is sort of how PyGame looks too, i.e CamelCase for types and function_underscore_rule for functions and methods, hehe. Just a small thing, but it's easier to change now than later.
I'll continue to browse the source code as you commit it and as soon as I'm able to build a physics module I'll start testing stuff in Python to see that it behaves as expected. If you can, try getting the Python module code ready and make dummy functions for the entire API, raise NotImplementedError if you want for unimplemented functions, that is PyErr_SetString(PyExc_NotImplementedError, "this isn't implemented yet") or similar, as long as I can build and import stuff in Python I can make a test suite. Since I'm not a math and my C knowledge is limited I'll try to assist with what little insight I have into the Python C API and Python as a language. /Peter On 2008-06-19 (Thu) 12:17, 帆 张 wrote: > Hi , > > Thank you very much, I'd like to see your advices and get help from you. I > also want to tell the difference between chipmunk(and Pymunk) and this > project, this one is not separated with python, all of its basic data > structures are based on python data structures, which means it can be > integrated in python seamlessly . Also some classes are targeted to integrate > physics updating and pygame sprite rendering, which means user can write > their physics games more easily. > API defines and my working progress are on my yahoo blog: > http://i.cn.yahoo.com/zhangfanfox/blog/ , and current working code is on a > branch of pygame svn: svn://seul.org/svn/pygame/branches/physics > > Best wishes > Zhang Fan > > > Peter Gebauer <[EMAIL PROTECTED]> 写道: > Hi! > > I read Zhang Fan's post regarding his gsoc project, I've been looking to do > something similar, a Python extension for an already existing library. > So far I've extended Chipmunk partially over a few days of prototyping, but > there's no point in having two projects doing the same thing, I'd like to > know a bit bout the plans of the physics module for PyGame. (if you're > reading this, Zhang) > I could also help out with some testing/patching for the C Python stuff. > > /Peter > > > > --------------------------------- > 雅虎邮箱,您的终生邮箱!