From: Samuele P. <ped...@us...> - 2005-02-22 22:38:47
|
Update of /cvsroot/jython/jython/org/python/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11074/org/python/core Modified Files: PyDictionary.java Log Message: setdefault was wrongly exposed Index: PyDictionary.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/PyDictionary.java,v retrieving revision 2.22 retrieving revision 2.23 diff -C2 -d -r2.22 -r2.23 *** PyDictionary.java 22 Feb 2005 04:19:30 -0000 2.22 --- PyDictionary.java 22 Feb 2005 22:38:33 -0000 2.23 *************** *** 220,225 **** public PyObject __call__(PyObject arg0, PyObject arg1) { ! self.dict_setdefault(arg0, arg1); ! return Py.None; } --- 220,224 ---- public PyObject __call__(PyObject arg0, PyObject arg1) { ! return self.dict_setdefault(arg0, arg1); } *************** *** 227,243 **** PyObject arg1) { PyDictionary self = (PyDictionary) gself; ! self.dict_setdefault(arg0, arg1); ! return Py.None; } public PyObject __call__(PyObject arg0) { ! self.dict_setdefault(arg0); ! return Py.None; } public PyObject inst_call(PyObject gself, PyObject arg0) { PyDictionary self = (PyDictionary) gself; ! self.dict_setdefault(arg0); ! return Py.None; } --- 226,239 ---- PyObject arg1) { PyDictionary self = (PyDictionary) gself; ! return self.dict_setdefault(arg0, arg1); } public PyObject __call__(PyObject arg0) { ! return self.dict_setdefault(arg0); } public PyObject inst_call(PyObject gself, PyObject arg0) { PyDictionary self = (PyDictionary) gself; ! return self.dict_setdefault(arg0); } |