[Scipy-svn] r2074 - trunk/Lib/sandbox/ga

scipy-svn at scipy.org scipy-svn at scipy.org
Mon Jul 10 23:24:21 EDT 2006


Author: timl
Date: 2006-07-10 22:24:15 -0500 (Mon, 10 Jul 2006)
New Revision: 2074

Modified:
   trunk/Lib/sandbox/ga/gene.py
Log:
remove duplicate definition of __float__

Modified: trunk/Lib/sandbox/ga/gene.py
===================================================================
--- trunk/Lib/sandbox/ga/gene.py	2006-07-11 03:21:13 UTC (rev 2073)
+++ trunk/Lib/sandbox/ga/gene.py	2006-07-11 03:24:15 UTC (rev 2074)
@@ -344,7 +344,6 @@
     def __rdiv__(self, other):
         try: return other.value() / self._value
         except AttributeError: return other / self._value
-    def __float__(self): return float(self._value)
     def __neg__(self): return -self._value
     def __cmp__(self, other):
         try:




More information about the Scipy-svn mailing list