From: <pj...@us...> - 2008-07-31 22:07:18
|
Revision: 5033 http://jython.svn.sourceforge.net/jython/?rev=5033&view=rev Author: pjenvey Date: 2008-07-31 22:07:13 +0000 (Thu, 31 Jul 2008) Log Message: ----------- deprecate complex divmod(), // and % Modified Paths: -------------- branches/asm/src/org/python/core/PyComplex.java Modified: branches/asm/src/org/python/core/PyComplex.java =================================================================== --- branches/asm/src/org/python/core/PyComplex.java 2008-07-31 20:50:59 UTC (rev 5032) +++ branches/asm/src/org/python/core/PyComplex.java 2008-07-31 22:07:13 UTC (rev 5033) @@ -490,6 +490,7 @@ } private static PyObject _mod(PyComplex value, PyComplex right) { + Py.warning(Py.DeprecationWarning, "complex divmod(), // and % are deprecated"); PyComplex z = (PyComplex) _div(value, right); z.real = Math.floor(z.real); @@ -521,6 +522,7 @@ } private static PyObject _divmod(PyComplex value, PyComplex right) { + Py.warning(Py.DeprecationWarning, "complex divmod(), // and % are deprecated"); PyComplex z = (PyComplex) _div(value, right); z.real = Math.floor(z.real); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |