We have the following weird problem, that we are unable to deliberately
replicate no matter what we try...

It seems to appears only when our server (running python2.5.1, daily updated
django svn, mod_python 3.3.1) has been running for at least maybe 4-5
hours...
After an apache restart there is no sign of the bug for another 5-7 hours...

The weird thing is that calling the view with the exactly the same
parameters usually doesn't reproduce the error.

=== sample code ===
(class1, class2) = (sum.__class__, f_c.rate.__class__)
d_sum = sum * f_c.rate
<-  break

Local vars:
class1 <class 'decimal.Decimal'>
class2 <class 'decimal.Decimal'>
sum Decimal("0.23")
=== ===

sum is property of a model object in our database
(models.DecimalField(max_digits=7,
decimal_places=2)) & f_c.rate is a  Decimal constructed using
Decimal(string) construction (Decimal is imported with "from decimal import
Decimal")

We have some doubts that this may be a result of the django's python
2.3_decimal compatibility.

Any help is appreciated...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to