This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Gap.__getattr__ to return GAP objects other than just functions
There's no immediately obvious reason it should only be able to return functions; there are some GAP globals that are not functions that might still be of interest. Cleans up the common_gap_functions list to remove entries that are either not actually functions, or that no longer exist. Added a common_gap_globals list which includes common_gap_functions, but also other common globals previously from common_gap_functions but that are not actually functions.
- Loading branch information
Showing
3 changed files
with
69 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
"""Common globals defined by GAP.""" | ||
|
||
############################################################################### | ||
# Copyright (C) 2009, William Stein <wstein@gmail.com> | ||
# Copyright (C) 2012, Volker Braun <vbraun.name@gmail.com> | ||
# | ||
# Distributed under the terms of the GNU General Public License (GPL) | ||
# as published by the Free Software Foundation; either version 2 of | ||
# the License, or (at your option) any later version. | ||
# http://www.gnu.org/licenses/ | ||
############################################################################### | ||
|
||
|
||
from .gap_functions import common_gap_functions | ||
|
||
|
||
# selected gap globals to use in tab completion | ||
common_gap_globals = set([ | ||
'Assert', | ||
'Cyclotomics', | ||
'GaussianIntegers', | ||
'GaussianRationals', | ||
'GlobalMersenneTwister', | ||
'GlobalRandomSource', | ||
'InfoAlgebra', | ||
'InfoAttributes', | ||
'InfoBckt', | ||
'InfoCharacterTable', | ||
'InfoCoh', | ||
'InfoComplement', | ||
'InfoCoset', | ||
'InfoFpGroup', | ||
'InfoGroebner', | ||
'InfoGroup', | ||
'InfoLattice', | ||
'InfoMatrix', | ||
'InfoMonomial', | ||
'InfoNumtheor', | ||
'InfoOptions', | ||
'InfoPcSubgroup', | ||
'Integers', | ||
'NiceBasisFiltersInfo', | ||
'Primes', | ||
'Rationals', | ||
'TableOfMarksComponents' | ||
]) | common_gap_functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters