# Is it possible to subclass a sage class?

I want to subclass the sage `Polyhedra`

class.

Basically, I have a bunch of functions I have written for polyhedra and I want to organize them in a class. Is this possible in sage?

Does this help? https://docs.python.org/2/tutorial/cl... Though if it's a Cython class it might be slightly more complicated.

It's not a Cython class:

`Polyhedra_base`

is defined in the Python file`src/sage/geometry/polyhedron/parent.py`

.Hi, @done_with_fish did you manage to do this? I have no trouble doing it with Python classes, but struggle with Sage classes, see here: https://ask.sagemath.org/question/469...

Note that the question linked above has an accepted answer now, so people should go there if they find this question.