Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
some doc
Browse files Browse the repository at this point in the history
  • Loading branch information
videlec committed Apr 29, 2021
1 parent e8d3427 commit b873bcb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sage/structure/parent.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,17 @@ cdef class Parent(sage.structure.category_object.CategoryObject):

def __pow__(self, x, mod):
"""
Power function.
The default implementation of ``__pow__`` on parent redirects to the
super class (in case of multiple inheritance) or to the category. This
redirection is necessary when the parent is a Cython class (aka
extension class) because in that case the parent class does not inherit
from the ``ParentMethods`` of the category.
Concrete implementations of parents can freely overwrite this default
method.
TESTS::
sage: ZZ^3
Expand Down

0 comments on commit b873bcb

Please sign in to comment.