Hi Kwankyu,

On 2019-03-13, Kwankyu Lee <ekwan...@gmail.com> wrote:
> For pickling, you probably just need to implement a __reduce__ method for 
>> the map.
>>
>
> Why not the category framework provide a default? This also seems to me a 
> defect of the category framework.

I think of pickling as an implementation detail, whereas the category
framework is for general stuff (in particular *mathematical* stuff) that
is independent of an implementation.

There are of course cases in which a default pickling mechanism makes
sense (think of UniqueRepresentation). However, I think that Map is
not such a case.

Namely, a map is given by a domain, a codomain, and defining data. There
could of course be a default implementation of pickling, namely: Provide
a slot for the data (the domain and codomain are referenced anyway,
although some of the references are weak references). However, it is not
the purpose of the category framework to provide a slot for data. So, if
one would implement a default __reduce__ method then it would certainly
not be part of the category framework, but of the base class for maps.

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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to