Revision: 585 http://rpy.svn.sourceforge.net/rpy/?rev=585&view=rev Author: lgautier Date: 2008-07-23 22:04:32 +0000 (Wed, 23 Jul 2008)
Log Message: ----------- Temporary message (waiting for unnamed arguments in dict-like object to be implemented) Modified Paths: -------------- branches/rpy_nextgen/rpy/rinterface/rinterface.c Modified: branches/rpy_nextgen/rpy/rinterface/rinterface.c =================================================================== --- branches/rpy_nextgen/rpy/rinterface/rinterface.c 2008-07-21 18:14:52 UTC (rev 584) +++ branches/rpy_nextgen/rpy/rinterface/rinterface.c 2008-07-23 22:04:32 UTC (rev 585) @@ -775,8 +775,17 @@ goto fail; } argName = PyTuple_GetItem(tmp_obj, 0); + + if (argName == Py_None) { + PyErr_SetString(PyExc_TypeError, + "None/missing keywords not yet supported."); + Py_DECREF(tmp_obj); + Py_XDECREF(citems); + goto fail; + } + if (! PyString_Check(argName)) { - PyErr_SetString(PyExc_TypeError, "keywords must be strings"); + PyErr_SetString(PyExc_TypeError, "All keywords must be strings."); Py_DECREF(tmp_obj); Py_XDECREF(citems); goto fail; 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list