Re: compiled methods

2011-01-16 Thread Santiago Caracol
Thank you very much! The term "memoize" was exactly what I was looking for. Santiago -- 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

Re: compiled methods

2011-01-16 Thread Daniel Roseman
On Sunday, January 16, 2011 9:24:49 AM UTC, Santiago Caracol wrote: > > Hello, > > is there such a thing as "compiled methods" in Django i.e. methods > whose return value is calculated only once and then stored? Or is > there a canonical Djangoish way to imp

compiled methods

2011-01-16 Thread Santiago Caracol
Hello, is there such a thing as "compiled methods" in Django i.e. methods whose return value is calculated only once and then stored? Or is there a canonical Djangoish way to implement this? An example: Suppose we have phone objects that have a canonical form, such as "alcatel