If the input is a (syntactically) mutable object without a hash, it errors out. If the mutable object has a hash, then that is a bug. However the output should be immutable (but doesn't necessarily have to be hashable).
Best, Travis On Tuesday, June 23, 2015 at 2:40:55 PM UTC-7, Nathann Cohen wrote: > > > If a @cached_method accepts mutable objects, that's a bug. > > Is it ? We could easily add checks for that. > > Nathann > -- 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.