From: <kz...@us...> - 2007-01-19 08:36:03
|
Revision: 3052 http://svn.sourceforge.net/jython/?rev=3052&view=rev Author: kzuberi Date: 2007-01-19 00:36:01 -0800 (Fri, 19 Jan 2007) Log Message: ----------- add pow to operators module, part of patch 1608656 from Henrik Eriksson Modified Paths: -------------- branches/2.3/src/org/python/modules/operator.java Modified: branches/2.3/src/org/python/modules/operator.java =================================================================== --- branches/2.3/src/org/python/modules/operator.java 2007-01-19 07:34:50 UTC (rev 3051) +++ branches/2.3/src/org/python/modules/operator.java 2007-01-19 08:36:01 UTC (rev 3052) @@ -57,6 +57,7 @@ case 33: return arg1._lt(arg2); case 34: return arg1._ne(arg2); case 35: return arg1._truediv(arg2); + case 36: return arg1._pow(arg2); default: throw argCountError(2); } @@ -198,6 +199,8 @@ dict.__setitem__("truediv", new OperatorFunctions("truediv", 35, 2)); dict.__setitem__("__truediv__", new OperatorFunctions("__truediv__", 35, 2)); + dict.__setitem__("pow", new OperatorFunctions("pow", 36, 2)); + dict.__setitem__("__pow__", new OperatorFunctions("pow", 36, 2)); } public static int countOf(PyObject seq, PyObject item) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |