Todd O'Bryan schrieb: > This seems to have come up earlier... > > http://mail.python.org/pipermail/python-list/2007-July/451187.html > > but no resolution. > > We're seeing the same thing. We're using Django's DecimalField type > and when we try to add or subtract values--which should be > decimal.Decimal objects--we occasionally get an error about the > operator not being supported. It doesn't always happen and we can't > seem to reproduce it when we try to.
Try putting an try/except clause around the problem that drops into the debugger: try: foo = a - b except TypeError: import pdb; pdb.set_trace() Then you can see what a & b _really_ are. Diez -- http://mail.python.org/mailman/listinfo/python-list