Hi Nathann, On 2014-05-14, Nathann Cohen <nathann.co...@gmail.com> wrote: >> This basic design pattern also fixes your caching problem. > > Yes, but it duplicates the code horribly. Because orthogonal_array is a > long sequence of tests and answers,and you do not want to find this long > collection of tests and answers copied and pasted into three different > functions, ...
... which means that you should probably turn this long collection of tests and answers into a cached method, which is then called by the other methods. So, no code duplication. Best regards, Simon -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.