jason kirtland committed 5bee510

- Clarified use of python's Decimal

  • Participants
  • Parent commits 8f7ab98

Comments (0)

Files changed (1)

File lib/sqlalchemy/

 import datetime as dt
 from sqlalchemy import exceptions
-from sqlalchemy.util import Decimal, pickle
+from sqlalchemy.util import pickle, Decimal as _python_Decimal
 class _UserTypeAdapter(type):
     """adapts 0.3 style user-defined types with convert_bind_param/convert_result_value
         if self.asdecimal:
             def process(value):
                 if value is not None:
-                    return Decimal(str(value))
+                    return _python_Decimal(str(value))
                     return value
             return process