On Friday, June 3, 2016 at 11:02:53 AM UTC-7, Simon King wrote: > > > But my second suggestion was: Add an option to @cached_method, so that one > can request copy-on-return. > > -1 for bug trap. We don't know what the correct interpretation of "copy" is. Most of the time, shallow copy will be enough, but in other cases a deeper copy (of what depth?) might be necessary to properly replicate the behavior of the function without @cached decoration. It sounds like the kind of feature that would be nice to offload on a library, but I think it's dangerous to advertise a general method that works in a fairly common case and will hide bugs in rarer cases.
-- 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 https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.