Revision: 403 http://rpy.svn.sourceforge.net/rpy/?rev=403&view=rev Author: lgautier Date: 2008-01-29 11:41:13 -0800 (Tue, 29 Jan 2008)
Log Message: ----------- changed function types form ssizeargfunc to intargfunc, and ssizessizeargfunc to intintargfunc (for compatibility with Python 2.4). It compiles with Python 2.5 with warnings. Conditional definitions will probably have to be made for Python 2.6 (or before to clear up the warnings). Modified Paths: -------------- trunk/rpy/src/rpymodule.c Modified: trunk/rpy/src/rpymodule.c =================================================================== --- trunk/rpy/src/rpymodule.c 2008-01-27 14:15:16 UTC (rev 402) +++ trunk/rpy/src/rpymodule.c 2008-01-29 19:41:13 UTC (rev 403) @@ -1548,13 +1548,16 @@ } +/* FIXME: + * Python 2.5 will feel happier with ssizeargfunc and ssizessizeargfunc + */ /* We should implement sq_slice, sq_contains ... */ static PySequenceMethods Robj_as_sequence = { (inquiry)Robj_len, /* sq_length */ 0, /* sq_concat */ 0, /* sq_repeat */ - (ssizeargfunc)Robj_item, /* sq_item */ - (ssizessizeargfunc)Robj_slice, /* sq_slice */ + (intargfunc)Robj_item, /* sq_item */ + (intintargfunc)Robj_slice, /* sq_slice */ (intobjargproc)Robj_ass_item, /* sq_ass_item */ 0, /* sq_ass_slice */ 0, /* sq_contains */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list