From: Ethan Glasser-C. <gla...@us...> - 2008-12-22 05:50:34
|
Update of /cvsroot/pyode/pyode/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12928/src Modified Files: space.pyx Log Message: Rename type to space_type for pyrex. Index: space.pyx =================================================================== RCS file: /cvsroot/pyode/pyode/src/space.pyx,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** space.pyx 13 Apr 2006 13:09:58 -0000 1.8 --- space.pyx 22 Dec 2008 05:50:30 -0000 1.9 *************** *** 352,372 **** ! def Space(type=0): """Space factory function. Depending on the type argument this function either returns a ! SimpleSpace (type=0) or a HashSpace (type=1). This function is provided to remain compatible with previous versions of PyODE where there was only one Space class. ! >>> space = Space(type=0) # Create a SimpleSpace ! >>> space = Space(type=1) # Create a HashSpace """ ! if type==0: return SimpleSpace() ! elif type==1: return HashSpace() else: ! raise ValueError, "Unknown space type (%d)"%type ! --- 352,372 ---- ! def Space(space_type=0): """Space factory function. Depending on the type argument this function either returns a ! SimpleSpace (space_type=0) or a HashSpace (space_type=1). This function is provided to remain compatible with previous versions of PyODE where there was only one Space class. ! >>> space = Space(space_type=0) # Create a SimpleSpace ! >>> space = Space(space_type=1) # Create a HashSpace """ ! if space_type==0: return SimpleSpace() ! elif space_type==1: return HashSpace() else: ! raise ValueError, "Unknown space type (%d)"%space_type ! |