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

Commit

Permalink
src/sage/features/interfaces.py (all_features): New
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Nov 14, 2021
1 parent 827ca03 commit 52ac51e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/sage/features/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,23 @@ class Scilab(InterfaceFeature):
@staticmethod
def __classcall__(cls):
return InterfaceFeature(cls, 'scilab', 'sage.interfaces.scilab')


def all_features():
r"""
Return features corresponding to interpreter interfaces.
EXAMPLES::
sage: from sage.features.interfaces import all_features
sage: list(all_features())
[Feature(<class 'sage.features.interfaces.Magma'>: sage.interfaces.magma), ...,
Feature(<class 'sage.features.interfaces.Scilab'>: sage.interfaces.scilab)]
"""
return [Magma(),
Matlab(),
Mathematica(),
Maple(),
Macaulay2(),
Octave(),
Scilab()]

0 comments on commit 52ac51e

Please sign in to comment.