forked from sagemath/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sagemathgh-38086:
all*.py
files: Use 'del lazy_import', 'del instal…
…l_doc' <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> - Cherry-picked from sagemath#37900 Includes style fixes from there as well. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#38086 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee
- Loading branch information
Showing
48 changed files
with
158 additions
and
162 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
""" | ||
Hecke Algebras | ||
""" | ||
#from sage.misc.lazy_import import lazy_import |
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
#****************************************************************************** | ||
# ****************************************************************************** | ||
# Copyright (C) 2020 Reimundo Heluani <heluani@potuz.net> | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License 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/ | ||
#***************************************************************************** | ||
# https://www.gnu.org/licenses/ | ||
# ***************************************************************************** | ||
|
||
|
||
from sage.misc.lazy_import import lazy_import | ||
lazy_import('sage.algebras.lie_conformal_algebras.lie_conformal_algebra','LieConformalAlgebra') | ||
lazy_import('sage.algebras.lie_conformal_algebras', 'examples', 'lie_conformal_algebras') | ||
lazy_import('sage.algebras.lie_conformal_algebras.lie_conformal_algebra', | ||
'LieConformalAlgebra') | ||
lazy_import('sage.algebras.lie_conformal_algebras', | ||
'examples', 'lie_conformal_algebras') | ||
del lazy_import |
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
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
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 |
---|---|---|
@@ -1,96 +1,36 @@ | ||
from sage.misc.lazy_import import lazy_import | ||
|
||
from sage.arith.misc import ( | ||
algdep, | ||
bernoulli, | ||
is_prime, | ||
is_prime_power, | ||
is_pseudoprime, | ||
is_pseudoprime_power, | ||
prime_powers, | ||
primes_first_n, | ||
eratosthenes, | ||
primes, | ||
next_prime_power, | ||
next_probable_prime, | ||
next_prime, | ||
previous_prime, | ||
previous_prime_power, | ||
random_prime, | ||
divisors, | ||
sigma, | ||
gcd, | ||
GCD, | ||
xlcm, | ||
xgcd, | ||
xkcd, | ||
inverse_mod, | ||
get_gcd, | ||
get_inverse_mod, | ||
power_mod, | ||
rational_reconstruction, | ||
mqrr_rational_reconstruction, | ||
trial_division, | ||
factor, | ||
prime_divisors, | ||
odd_part, | ||
prime_to_m_part, | ||
is_square, | ||
is_squarefree, | ||
euler_phi, | ||
carmichael_lambda, | ||
crt, | ||
CRT, | ||
CRT_list, | ||
CRT_basis, | ||
CRT_vectors, | ||
multinomial, | ||
multinomial_coefficients, | ||
binomial, | ||
factorial, | ||
kronecker_symbol, | ||
kronecker, | ||
legendre_symbol, | ||
primitive_root, | ||
nth_prime, | ||
quadratic_residues, | ||
moebius, | ||
continuant, | ||
number_of_divisors, | ||
hilbert_symbol, | ||
hilbert_conductor, | ||
hilbert_conductor_inverse, | ||
falling_factorial, | ||
rising_factorial, | ||
integer_ceil, | ||
integer_floor, | ||
two_squares, | ||
three_squares, | ||
four_squares, | ||
sum_of_k_squares, | ||
subfactorial, | ||
is_power_of_two, | ||
differences, | ||
sort_complex_numbers_for_display, | ||
fundamental_discriminant, | ||
squarefree_divisors, | ||
radical, | ||
binomial_coefficients, | ||
jacobi_symbol, | ||
dedekind_sum, | ||
prime_factors, | ||
prime_range, | ||
valuation, | ||
) | ||
from sage.arith.misc import (algdep, bernoulli, is_prime, is_prime_power, | ||
is_pseudoprime, is_pseudoprime_power, | ||
prime_powers, primes_first_n, eratosthenes, primes, | ||
next_prime_power, next_probable_prime, next_prime, | ||
previous_prime, previous_prime_power, random_prime, | ||
divisors, sigma, gcd, GCD, xlcm, xgcd, xkcd, | ||
inverse_mod, get_gcd, get_inverse_mod, power_mod, | ||
rational_reconstruction, mqrr_rational_reconstruction, | ||
trial_division, factor, prime_divisors, odd_part, prime_to_m_part, | ||
is_square, is_squarefree, euler_phi, carmichael_lambda, crt, CRT, | ||
CRT_list, CRT_basis, CRT_vectors, multinomial, multinomial_coefficients, | ||
binomial, factorial, kronecker_symbol, kronecker, legendre_symbol, | ||
primitive_root, nth_prime, quadratic_residues, moebius, | ||
continuant, number_of_divisors, hilbert_symbol, hilbert_conductor, | ||
hilbert_conductor_inverse, falling_factorial, rising_factorial, | ||
integer_ceil, integer_floor, | ||
two_squares, three_squares, four_squares, sum_of_k_squares, | ||
subfactorial, is_power_of_two, differences, | ||
sort_complex_numbers_for_display, | ||
fundamental_discriminant, squarefree_divisors, | ||
radical, binomial_coefficients, jacobi_symbol, | ||
dedekind_sum, | ||
prime_factors, prime_range, valuation) | ||
|
||
lazy_import("sage.arith.misc", ("Sigma", "Moebius", "Euler_Phi"), deprecation=30322) | ||
|
||
from sage.arith.functions import lcm | ||
|
||
LCM = lcm | ||
|
||
from sage.arith.srange import xsrange, srange, ellipsis_iter, ellipsis_range | ||
|
||
sxrange = xsrange | ||
|
||
σ = sigma | ||
del lazy_import |
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
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
|
||
from sage.misc.lazy_import import lazy_import as _lazy_import | ||
from sage.misc.lazy_import import lazy_import | ||
|
||
_lazy_import("sage.coding.code_constructions", ["permutation_action", | ||
"walsh_matrix"]) | ||
lazy_import("sage.coding.code_constructions", ["permutation_action", | ||
"walsh_matrix"]) | ||
|
||
_lazy_import("sage.coding.linear_code", "LinearCode") | ||
lazy_import("sage.coding.linear_code", "LinearCode") | ||
|
||
# Functions removed from the global namespace | ||
|
||
_lazy_import('sage.coding', 'codes_catalog', 'codes') | ||
_lazy_import('sage.coding', 'channels_catalog', 'channels') | ||
lazy_import('sage.coding', 'codes_catalog', 'codes') | ||
lazy_import('sage.coding', 'channels_catalog', 'channels') | ||
|
||
del lazy_import |
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
Oops, something went wrong.