[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9919 - trunk/gnue-reports/src/base
From: |
reinhard |
Subject: |
[gnue] r9919 - trunk/gnue-reports/src/base |
Date: |
Thu, 1 Oct 2009 08:51:40 -0500 (CDT) |
Author: reinhard
Date: 2009-10-01 08:51:39 -0500 (Thu, 01 Oct 2009)
New Revision: 9919
Modified:
trunk/gnue-reports/src/base/GRDataMapper.py
Log:
Added decimal.Decimal to list of possible numeric types, but only for
Python >= 2.4
Modified: trunk/gnue-reports/src/base/GRDataMapper.py
===================================================================
--- trunk/gnue-reports/src/base/GRDataMapper.py 2009-09-30 13:25:58 UTC (rev
9918)
+++ trunk/gnue-reports/src/base/GRDataMapper.py 2009-10-01 13:51:39 UTC (rev
9919)
@@ -35,6 +35,8 @@
from gnue.common.external.fixedpoint import FixedPoint
import types, string
+if sys.hexversion >= 0x02040000:
+ import decimal
#
# Class used internally by GRDataMapper
@@ -428,4 +430,6 @@
}
# Python types that are numeric
-_numericTypes = (types.FloatType, types.IntType, types.LongType)
+_numericTypes = [types.FloatType, types.IntType, types.LongType]
+if sys.hexversion >= 0x02040000:
+ _numericTypes.append(decimal.Decimal)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9919 - trunk/gnue-reports/src/base,
reinhard <=