Hi! I want to be able to create elements, and want their parents to be elements, so I've been reading this page: http://www.sagemath.org/doc/reference/sage/structure/element.html.
The example shows Cython commands it seems (cdef v def).... Why? Couldn't I just do this in Python?
Excerpt:
Elements typically define a method _new_c, e.g.,
cdef _new_c(self, defining data): cdef FreeModuleElement_generic_dense x x = PY_NEW(FreeModuleElement_generic_dense) x._parent = self._parent x._entries = v