diff --git a/src/sage/algebras/all.py b/src/sage/algebras/all.py index 9718eac16b7..c923e42a887 100644 --- a/src/sage/algebras/all.py +++ b/src/sage/algebras/all.py @@ -2,7 +2,7 @@ Algebras """ -#***************************************************************************** +# ***************************************************************************** # Copyright (C) 2005 William Stein # # Distributed under the terms of the GNU General Public License (GPL) @@ -15,7 +15,7 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.algebras.all__sagemath_modules import * from sage.algebras.all__sagemath_combinat import * diff --git a/src/sage/algebras/lie_algebras/all.py b/src/sage/algebras/lie_algebras/all.py index dd90b695923..510bcb23f24 100644 --- a/src/sage/algebras/lie_algebras/all.py +++ b/src/sage/algebras/lie_algebras/all.py @@ -2,7 +2,7 @@ Lie Algebras """ -#***************************************************************************** +# ***************************************************************************** # Copyright (C) 2013 Travis Scrimshaw # # Distributed under the terms of the GNU General Public License (GPL) @@ -15,10 +15,10 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.misc.lazy_import import lazy_import lazy_import('sage.algebras.lie_algebras.lie_algebra', 'LieAlgebra') -#from kac_moody import KacMoodyAlgebra +# from kac_moody import KacMoodyAlgebra lazy_import('sage.algebras.lie_algebras', 'examples', 'lie_algebras') del lazy_import diff --git a/src/sage/algebras/lie_conformal_algebras/all.py b/src/sage/algebras/lie_conformal_algebras/all.py index f8cbbcf7fa4..14925d4ac08 100644 --- a/src/sage/algebras/lie_conformal_algebras/all.py +++ b/src/sage/algebras/lie_conformal_algebras/all.py @@ -1,4 +1,4 @@ -#****************************************************************************** +# ****************************************************************************** # Copyright (C) 2020 Reimundo Heluani # # This program is free software: you can redistribute it and/or modify @@ -6,10 +6,12 @@ # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # http://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 diff --git a/src/sage/all.py b/src/sage/all.py index 640a07cdbea..5bead6ff7ff 100644 --- a/src/sage/all.py +++ b/src/sage/all.py @@ -59,96 +59,97 @@ ################ end setup warnings ############################### -from sage.all__sagemath_repl import * # includes .all__sagemath_objects, .all__sagemath_environment +# includes .all__sagemath_objects, .all__sagemath_environment +from sage.all__sagemath_repl import * ################################################################### # This import also sets up the interrupt handler from cysignals.signals import (AlarmInterrupt, SignalError, - sig_on_reset as sig_on_count) + sig_on_reset as sig_on_count) -from time import sleep +from time import sleep from functools import reduce # in order to keep reduce in python3 import sage.misc.lazy_import -from sage.misc.all import * # takes a while -from sage.typeset.all import * +from sage.misc.all import * # takes a while +from sage.typeset.all import * from sage.misc.sh import sh -from sage.libs.all import * +from sage.libs.all import * from sage.data_structures.all import * -from sage.structure.all import * -from sage.rings.all import * -from sage.arith.all import * -from sage.matrix.all import * - -from sage.symbolic.all import * -from sage.modules.all import * -from sage.monoids.all import * -from sage.algebras.all import * -from sage.modular.all import * -from sage.sat.all import * -from sage.schemes.all import * -from sage.graphs.all import * -from sage.groups.all import * -from sage.arith.power import generic_power as power -from sage.databases.all import * +from sage.structure.all import * +from sage.rings.all import * +from sage.arith.all import * +from sage.matrix.all import * + +from sage.symbolic.all import * +from sage.modules.all import * +from sage.monoids.all import * +from sage.algebras.all import * +from sage.modular.all import * +from sage.sat.all import * +from sage.schemes.all import * +from sage.graphs.all import * +from sage.groups.all import * +from sage.arith.power import generic_power as power +from sage.databases.all import * from sage.categories.all import * -from sage.sets.all import * +from sage.sets.all import * from sage.probability.all import * from sage.interfaces.all import * -from sage.functions.all import * -from sage.calculus.all import * +from sage.functions.all import * +from sage.calculus.all import * lazy_import('sage.tests', 'all', as_='tests', deprecation=27337) -from sage.cpython.all import * +from sage.cpython.all import * -from sage.crypto.all import * +from sage.crypto.all import * import sage.crypto.mq as mq -from sage.plot.all import * -from sage.plot.plot3d.all import * +from sage.plot.all import * +from sage.plot.plot3d.all import * -from sage.coding.all import * -from sage.combinat.all import * +from sage.coding.all import * +from sage.combinat.all import * from sage.lfunctions.all import * -from sage.geometry.all import * -from sage.geometry.triangulation.all import * -from sage.geometry.riemannian_manifolds.all import * +from sage.geometry.all import * +from sage.geometry.triangulation.all import * +from sage.geometry.riemannian_manifolds.all import * -from sage.dynamics.all import * +from sage.dynamics.all import * -from sage.homology.all import * +from sage.homology.all import * -from sage.topology.all import * +from sage.topology.all import * from sage.quadratic_forms.all import * -from sage.games.all import * +from sage.games.all import * -from sage.logic.all import * +from sage.logic.all import * -from sage.numerical.all import * +from sage.numerical.all import * -from sage.stats.all import * +from sage.stats.all import * import sage.stats.all as stats -from sage.parallel.all import * +from sage.parallel.all import * -from sage.ext.fast_callable import fast_callable -from sage.ext.fast_eval import fast_float +from sage.ext.fast_callable import fast_callable +from sage.ext.fast_eval import fast_float from sage.sandpiles.all import * -from sage.tensor.all import * +from sage.tensor.all import * -from sage.matroids.all import * +from sage.matroids.all import * from sage.game_theory.all import * @@ -168,7 +169,7 @@ _init_qqbar() ########################################################### -#### WARNING: +# WARNING: # DO *not* import numpy / matplotlib / networkx here!! # Each takes a surprisingly long time to initialize, # and that initialization should be done more on-the-fly @@ -190,31 +191,37 @@ copying = license copyright = license + def quit_sage(verbose=True): """ Does nothing. Code that needs cleanup should register its own handler using the atexit module. """ from sage.misc.superseded import deprecation - deprecation(8784, 'quit_sage is deprecated and now does nothing; please simply delete it') + deprecation( + 8784, 'quit_sage is deprecated and now does nothing; please simply delete it') from sage.misc.persist import register_unpickle_override register_unpickle_override('sage.categories.category', 'Sets', Sets) -register_unpickle_override('sage.categories.category_types', 'HeckeModules', HeckeModules) +register_unpickle_override('sage.categories.category_types', + 'HeckeModules', HeckeModules) register_unpickle_override('sage.categories.category_types', 'Objects', Objects) register_unpickle_override('sage.categories.category_types', 'Rings', Rings) register_unpickle_override('sage.categories.category_types', 'Fields', Fields) -register_unpickle_override('sage.categories.category_types', 'VectorSpaces', VectorSpaces) -register_unpickle_override('sage.categories.category_types', 'Schemes_over_base', sage.categories.schemes.Schemes_over_base) -register_unpickle_override('sage.categories.category_types', 'ModularAbelianVarieties', ModularAbelianVarieties) +register_unpickle_override('sage.categories.category_types', + 'VectorSpaces', VectorSpaces) +register_unpickle_override('sage.categories.category_types', + 'Schemes_over_base', sage.categories.schemes.Schemes_over_base) +register_unpickle_override('sage.categories.category_types', + 'ModularAbelianVarieties', ModularAbelianVarieties) register_unpickle_override('sage.libs.pari.gen_py', 'pari', pari) # Cache the contents of star imports. sage.misc.lazy_import.save_cache_file() -### Debugging for Singular, see trac #10903 +# Debugging for Singular, see trac #10903 # from sage.libs.singular.ring import poison_currRing # sys.settrace(poison_currRing) @@ -241,7 +248,7 @@ def quit_sage(verbose=True): sage.misc.lazy_import.finish_startup() -### Python broke large ints; see trac #34506 +# Python broke large ints; see trac #34506 if hasattr(sys, "set_int_max_str_digits"): sys.set_int_max_str_digits(0) diff --git a/src/sage/all__sagemath_objects.py b/src/sage/all__sagemath_objects.py index 7780f245aae..36a12b3f339 100644 --- a/src/sage/all__sagemath_objects.py +++ b/src/sage/all__sagemath_objects.py @@ -9,16 +9,16 @@ # This import also sets up the interrupt handler from cysignals.signals import (AlarmInterrupt, SignalError, - sig_on_reset as sig_on_count) + sig_on_reset as sig_on_count) -from time import sleep +from time import sleep -from sage.misc.all__sagemath_objects import * -from sage.structure.all import * -from sage.arith.power import generic_power as power +from sage.misc.all__sagemath_objects import * +from sage.structure.all import * +from sage.arith.power import generic_power as power from sage.categories.all__sagemath_objects import * -from sage.cpython.all import * +from sage.cpython.all import * from cysignals.alarm import alarm, cancel_alarm diff --git a/src/sage/all__sagemath_repl.py b/src/sage/all__sagemath_repl.py index 43bdb38e21f..6ef86e4dd0e 100644 --- a/src/sage/all__sagemath_repl.py +++ b/src/sage/all__sagemath_repl.py @@ -2,7 +2,8 @@ import sys import warnings -__with_pydebug = hasattr(sys, 'gettotalrefcount') # This is a Python debug build (--with-pydebug) +# This is a Python debug build (--with-pydebug) +__with_pydebug = hasattr(sys, 'gettotalrefcount') if __with_pydebug: # a debug build does not install the default warning filters. Sadly, this breaks doctests so we # have to re-add them: @@ -16,38 +17,38 @@ # Ignore all deprecations from IPython etc. warnings.filterwarnings('ignore', category=DeprecationWarning, - module='(IPython|ipykernel|jupyter_client|jupyter_core|nbformat|notebook|ipywidgets|storemagic|jedi)') + module='(IPython|ipykernel|jupyter_client|jupyter_core|nbformat|notebook|ipywidgets|storemagic|jedi)') # scipy 1.18 introduced reprecation warnings on a number of things they are moving to # numpy, e.g. DeprecationWarning: scipy.array is deprecated # and will be removed in SciPy 2.0.0, use numpy.array instead # This affects networkx 2.2 up and including 2.4 (cf. :trac:29766) warnings.filterwarnings('ignore', category=DeprecationWarning, - module='(scipy|networkx)') + module='(scipy|networkx)') # However, be sure to keep OUR deprecation warnings warnings.filterwarnings('default', category=DeprecationWarning, - message=r'[\s\S]*See https?://trac\.sagemath\.org/[0-9]* for details.') + message=r'[\s\S]*See https?://trac\.sagemath\.org/[0-9]* for details.') # Ignore Python 3.9 deprecation warnings warnings.filterwarnings('ignore', category=DeprecationWarning, - module='ast') + module='ast') # Ignore packaging 20.5 deprecation warnings warnings.filterwarnings('ignore', category=DeprecationWarning, - module='(.*[.]_vendor[.])?packaging') + module='(.*[.]_vendor[.])?packaging') # Ignore a few warnings triggered by pythran 0.12.1 warnings.filterwarnings('ignore', category=DeprecationWarning, - message='\n\n `numpy.distutils` is deprecated since NumPy 1.23.0', - module='pythran.dist') + message='\n\n `numpy.distutils` is deprecated since NumPy 1.23.0', + module='pythran.dist') warnings.filterwarnings('ignore', category=DeprecationWarning, - message='pkg_resources is deprecated as an API|' - 'Deprecated call to `pkg_resources.declare_namespace(.*)`', - module='pkg_resources|setuptools.sandbox') + message='pkg_resources is deprecated as an API|' + 'Deprecated call to `pkg_resources.declare_namespace(.*)`', + module='pkg_resources|setuptools.sandbox') warnings.filterwarnings('ignore', category=DeprecationWarning, - message='msvccompiler is deprecated and slated to be removed', - module='distutils.msvccompiler') + message='msvccompiler is deprecated and slated to be removed', + module='distutils.msvccompiler') warnings.filterwarnings('ignore', category=DeprecationWarning, message='The distutils(.sysconfig module| package) is deprecated', @@ -100,8 +101,8 @@ from sage.all__sagemath_objects import * from sage.all__sagemath_environment import * -from sage.doctest.all import * -from sage.repl.all import * +from sage.doctest.all import * +from sage.repl.all import * from sage.misc.all__sagemath_repl import * # For doctesting. These are overwritten later diff --git a/src/sage/all_cmdline.py b/src/sage/all_cmdline.py index 197d34ebc90..33d0712c996 100644 --- a/src/sage/all_cmdline.py +++ b/src/sage/all_cmdline.py @@ -19,7 +19,7 @@ from sage.misc.lazy_import import lazy_import -for pkg in ['axiom', 'fricas', 'gap' , 'gap3', 'giac', 'gp', +for pkg in ['axiom', 'fricas', 'gap', 'gap3', 'giac', 'gp', 'gnuplot', 'kash', 'magma', 'macaulay2', 'maple', 'mathematica', 'mathics', 'matlab', 'mupad', 'mwrank', 'octave', 'qepcad', 'singular', diff --git a/src/sage/arith/all.py b/src/sage/arith/all.py index c230a2fb28d..c96f8ed202e 100644 --- a/src/sage/arith/all.py +++ b/src/sage/arith/all.py @@ -1,28 +1,28 @@ 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) + 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) diff --git a/src/sage/arith/all__sagemath_objects.py b/src/sage/arith/all__sagemath_objects.py index ccd64831912..f1a05b60932 100644 --- a/src/sage/arith/all__sagemath_objects.py +++ b/src/sage/arith/all__sagemath_objects.py @@ -1,4 +1,4 @@ # The presence of this file ensures that sage_setup for sagemath-objects # considers this directory as a namespace package -from sage.arith.power import generic_power as power +from sage.arith.power import generic_power as power diff --git a/src/sage/calculus/all.py b/src/sage/calculus/all.py index b597a15684b..e9e26918527 100644 --- a/src/sage/calculus/all.py +++ b/src/sage/calculus/all.py @@ -3,11 +3,11 @@ from sage.calculus import desolvers from sage.calculus.calculus import maxima as maxima_calculus from sage.calculus.calculus import (laplace, inverse_laplace, - limit, lim) + limit, lim) from sage.calculus.desolvers import (desolve, desolve_laplace, desolve_system, - eulers_method, eulers_method_2x2, - eulers_method_2x2_plot, desolve_rk4, desolve_system_rk4, - desolve_odeint, desolve_mintides, desolve_tides_mpfr) + eulers_method, eulers_method_2x2, + eulers_method_2x2_plot, desolve_rk4, desolve_system_rk4, + desolve_odeint, desolve_mintides, desolve_tides_mpfr) from sage.calculus.expr import symbolic_expression from sage.calculus.var import (var, function, clear_vars) diff --git a/src/sage/calculus/all__sagemath_modules.py b/src/sage/calculus/all__sagemath_modules.py index cab2bf3629f..f12d63a3b7f 100644 --- a/src/sage/calculus/all__sagemath_modules.py +++ b/src/sage/calculus/all__sagemath_modules.py @@ -12,7 +12,7 @@ # We lazy_import the following modules since they import numpy which slows down sage startup from sage.misc.lazy_import import lazy_import lazy_import("sage.calculus.riemann", ["Riemann_Map"]) -lazy_import("sage.calculus.interpolators", ["polygon_spline","complex_cubic_spline"]) +lazy_import("sage.calculus.interpolators", ["polygon_spline", "complex_cubic_spline"]) from sage.calculus.transforms.all import * del lazy_import diff --git a/src/sage/categories/all.py b/src/sage/categories/all.py index 00ddc1240d6..9904917ac0a 100644 --- a/src/sage/categories/all.py +++ b/src/sage/categories/all.py @@ -109,31 +109,31 @@ # * with basis from sage.categories.modules_with_basis import ModulesWithBasis FreeModules = ModulesWithBasis -from sage.categories.hecke_modules import HeckeModules -from sage.categories.algebras_with_basis import AlgebrasWithBasis -from sage.categories.coalgebras_with_basis import CoalgebrasWithBasis -from sage.categories.bialgebras_with_basis import BialgebrasWithBasis +from sage.categories.hecke_modules import HeckeModules +from sage.categories.algebras_with_basis import AlgebrasWithBasis +from sage.categories.coalgebras_with_basis import CoalgebrasWithBasis +from sage.categories.bialgebras_with_basis import BialgebrasWithBasis from sage.categories.hopf_algebras_with_basis import HopfAlgebrasWithBasis # finite dimensional * with basis -from sage.categories.finite_dimensional_modules_with_basis import FiniteDimensionalModulesWithBasis -from sage.categories.finite_dimensional_algebras_with_basis import FiniteDimensionalAlgebrasWithBasis -from sage.categories.finite_dimensional_coalgebras_with_basis import FiniteDimensionalCoalgebrasWithBasis -from sage.categories.finite_dimensional_bialgebras_with_basis import FiniteDimensionalBialgebrasWithBasis +from sage.categories.finite_dimensional_modules_with_basis import FiniteDimensionalModulesWithBasis +from sage.categories.finite_dimensional_algebras_with_basis import FiniteDimensionalAlgebrasWithBasis +from sage.categories.finite_dimensional_coalgebras_with_basis import FiniteDimensionalCoalgebrasWithBasis +from sage.categories.finite_dimensional_bialgebras_with_basis import FiniteDimensionalBialgebrasWithBasis from sage.categories.finite_dimensional_hopf_algebras_with_basis import FiniteDimensionalHopfAlgebrasWithBasis # graded * -from sage.categories.graded_modules import GradedModules -from sage.categories.graded_algebras import GradedAlgebras -from sage.categories.graded_coalgebras import GradedCoalgebras -from sage.categories.graded_bialgebras import GradedBialgebras +from sage.categories.graded_modules import GradedModules +from sage.categories.graded_algebras import GradedAlgebras +from sage.categories.graded_coalgebras import GradedCoalgebras +from sage.categories.graded_bialgebras import GradedBialgebras from sage.categories.graded_hopf_algebras import GradedHopfAlgebras # graded * with basis -from sage.categories.graded_modules_with_basis import GradedModulesWithBasis -from sage.categories.graded_algebras_with_basis import GradedAlgebrasWithBasis -from sage.categories.graded_coalgebras_with_basis import GradedCoalgebrasWithBasis -from sage.categories.graded_bialgebras_with_basis import GradedBialgebrasWithBasis +from sage.categories.graded_modules_with_basis import GradedModulesWithBasis +from sage.categories.graded_algebras_with_basis import GradedAlgebrasWithBasis +from sage.categories.graded_coalgebras_with_basis import GradedCoalgebrasWithBasis +from sage.categories.graded_bialgebras_with_basis import GradedBialgebrasWithBasis from sage.categories.graded_hopf_algebras_with_basis import GradedHopfAlgebrasWithBasis # Coxeter groups diff --git a/src/sage/categories/all__sagemath_objects.py b/src/sage/categories/all__sagemath_objects.py index 5dd65dfee63..76504d81be2 100644 --- a/src/sage/categories/all__sagemath_objects.py +++ b/src/sage/categories/all__sagemath_objects.py @@ -17,12 +17,12 @@ from sage.categories.cartesian_product import cartesian_product -from sage.categories.functor import (ForgetfulFunctor, - IdentityFunctor) +from sage.categories.functor import (ForgetfulFunctor, + IdentityFunctor) -from sage.categories.homset import (Hom, hom, - End, end, - Homset, HomsetWithBase) +from sage.categories.homset import (Hom, hom, + End, end, + Homset, HomsetWithBase) from sage.categories.morphism import Morphism diff --git a/src/sage/combinat/all__sagemath_categories.py b/src/sage/combinat/all__sagemath_categories.py index 99c58eb881a..854cf866f40 100644 --- a/src/sage/combinat/all__sagemath_categories.py +++ b/src/sage/combinat/all__sagemath_categories.py @@ -7,14 +7,14 @@ from sage.combinat.integer_vector import IntegerVectors from sage.combinat.combinat import (CombinatorialClass, CombinatorialObject, - MapCombinatorialClass, - bell_number, bell_polynomial, bernoulli_polynomial, - catalan_number, euler_number, - fibonacci, fibonacci_sequence, fibonacci_xrange, - lucas_number1, lucas_number2, - number_of_tuples, number_of_unordered_tuples, - polygonal_number, stirling_number1, stirling_number2, - tuples, unordered_tuples) + MapCombinatorialClass, + bell_number, bell_polynomial, bernoulli_polynomial, + catalan_number, euler_number, + fibonacci, fibonacci_sequence, fibonacci_xrange, + lucas_number1, lucas_number2, + number_of_tuples, number_of_unordered_tuples, + polygonal_number, stirling_number1, stirling_number2, + tuples, unordered_tuples) lazy_import('sage.combinat.combinat', ('InfiniteAbstractCombinatorialClass', 'UnionCombinatorialClass', diff --git a/src/sage/combinat/all__sagemath_combinat.py b/src/sage/combinat/all__sagemath_combinat.py index 06551f002ae..3d73df44d28 100644 --- a/src/sage/combinat/all__sagemath_combinat.py +++ b/src/sage/combinat/all__sagemath_combinat.py @@ -13,8 +13,10 @@ lazy_import('sage.combinat.schubert_polynomial', 'SchubertPolynomialRing') lazy_import('sage.combinat.key_polynomial', 'KeyPolynomialBasis', as_='KeyPolynomials') -lazy_import('sage.combinat.symmetric_group_algebra', ['SymmetricGroupAlgebra', 'HeckeAlgebraSymmetricGroupT']) -lazy_import('sage.combinat.symmetric_group_representations', ['SymmetricGroupRepresentation', 'SymmetricGroupRepresentations']) +lazy_import('sage.combinat.symmetric_group_algebra', [ + 'SymmetricGroupAlgebra', 'HeckeAlgebraSymmetricGroupT']) +lazy_import('sage.combinat.symmetric_group_representations', [ + 'SymmetricGroupRepresentation', 'SymmetricGroupRepresentations']) # Permutations lazy_import('sage.combinat.affine_permutation', 'AffinePermutationGroup') @@ -28,7 +30,8 @@ from sage.combinat.rsk import RSK, RSK_inverse, robinson_schensted_knuth, robinson_schensted_knuth_inverse, InsertionRules # HillmanGrassl -lazy_import("sage.combinat.hillman_grassl", ["WeakReversePlanePartition", "WeakReversePlanePartitions"]) +lazy_import("sage.combinat.hillman_grassl", [ + "WeakReversePlanePartition", "WeakReversePlanePartitions"]) # PerfectMatchings from sage.combinat.perfect_matching import PerfectMatching, PerfectMatchings @@ -38,8 +41,8 @@ # Partitions from sage.combinat.partition import (Partition, Partitions, PartitionsInBox, - OrderedPartitions, PartitionsGreatestLE, - PartitionsGreatestEQ, number_of_partitions) + OrderedPartitions, PartitionsGreatestLE, + PartitionsGreatestEQ, number_of_partitions) lazy_import('sage.combinat.partition_tuple', ['PartitionTuple', 'PartitionTuples']) lazy_import('sage.combinat.partition_kleshchev', ['KleshchevPartitions']) @@ -139,7 +142,8 @@ from sage.combinat.matrices.all import * lazy_import('sage.combinat.integer_vector_weighted', 'WeightedIntegerVectors') -lazy_import('sage.combinat.integer_vectors_mod_permgroup', 'IntegerVectorsModPermutationGroup') +lazy_import('sage.combinat.integer_vectors_mod_permgroup', + 'IntegerVectorsModPermutationGroup') lazy_import('sage.combinat.q_analogues', ['gaussian_binomial', 'q_binomial']) diff --git a/src/sage/combinat/all__sagemath_graphs.py b/src/sage/combinat/all__sagemath_graphs.py index 1fe628586f8..d789b89078b 100644 --- a/src/sage/combinat/all__sagemath_graphs.py +++ b/src/sage/combinat/all__sagemath_graphs.py @@ -7,12 +7,13 @@ # Trees and Tamari interval posets from sage.combinat.ordered_tree import (OrderedTree, OrderedTrees, - LabelledOrderedTree, LabelledOrderedTrees) + LabelledOrderedTree, LabelledOrderedTrees) from sage.combinat.binary_tree import (BinaryTree, BinaryTrees, - LabelledBinaryTree, LabelledBinaryTrees) + LabelledBinaryTree, LabelledBinaryTrees) lazy_import('sage.combinat.rooted_tree', ('RootedTree', 'RootedTrees', - 'LabelledRootedTree', 'LabelledRootedTrees')) -lazy_import('sage.combinat.interval_posets', ['TamariIntervalPoset', 'TamariIntervalPosets']) + 'LabelledRootedTree', 'LabelledRootedTrees')) +lazy_import('sage.combinat.interval_posets', [ + 'TamariIntervalPoset', 'TamariIntervalPosets']) from sage.combinat.graph_path import GraphPaths diff --git a/src/sage/combinat/cluster_algebra_quiver/all.py b/src/sage/combinat/cluster_algebra_quiver/all.py index 5b28d09d1c6..9659105e91a 100644 --- a/src/sage/combinat/cluster_algebra_quiver/all.py +++ b/src/sage/combinat/cluster_algebra_quiver/all.py @@ -12,7 +12,8 @@ install_doc(__package__, __doc__) from sage.misc.lazy_import import lazy_import -lazy_import("sage.combinat.cluster_algebra_quiver.quiver_mutation_type", "QuiverMutationType") +lazy_import("sage.combinat.cluster_algebra_quiver.quiver_mutation_type", + "QuiverMutationType") lazy_import("sage.combinat.cluster_algebra_quiver.quiver", "ClusterQuiver") lazy_import("sage.combinat.cluster_algebra_quiver.cluster_seed", "ClusterSeed") diff --git a/src/sage/combinat/designs/all.py b/src/sage/combinat/designs/all.py index fea919db24e..d27679a09a1 100644 --- a/src/sage/combinat/designs/all.py +++ b/src/sage/combinat/designs/all.py @@ -43,7 +43,8 @@ lazy_import('sage.combinat.designs.incidence_structures', 'IncidenceStructure') -lazy_import('sage.combinat.designs.incidence_structures', 'IncidenceStructure', 'BlockDesign') +lazy_import('sage.combinat.designs.incidence_structures', + 'IncidenceStructure', 'BlockDesign') lazy_import('sage.combinat.designs.incidence_structures', 'IncidenceStructure', as_='Hypergraph') diff --git a/src/sage/combinat/root_system/all.py b/src/sage/combinat/root_system/all.py index 5a6aef8d2e8..935e6ad73cc 100644 --- a/src/sage/combinat/root_system/all.py +++ b/src/sage/combinat/root_system/all.py @@ -138,6 +138,8 @@ 'WeightRing']) from sage.combinat.root_system.branching_rules import BranchingRule, branching_rule_from_plethysm, branching_rule -lazy_import('sage.combinat.root_system.non_symmetric_macdonald_polynomials', 'NonSymmetricMacdonaldPolynomials') -lazy_import('sage.combinat.root_system.integrable_representations', 'IntegrableRepresentation') +lazy_import('sage.combinat.root_system.non_symmetric_macdonald_polynomials', + 'NonSymmetricMacdonaldPolynomials') +lazy_import('sage.combinat.root_system.integrable_representations', + 'IntegrableRepresentation') del lazy_import diff --git a/src/sage/crypto/all.py b/src/sage/crypto/all.py index 3645d45acea..811ee2c6a78 100644 --- a/src/sage/crypto/all.py +++ b/src/sage/crypto/all.py @@ -10,14 +10,14 @@ 'ShiftCryptosystem', 'TranspositionCryptosystem', 'VigenereCryptosystem', - ]) + ]) lazy_import('sage.crypto.stream', ['LFSRCryptosystem', 'ShrinkingGeneratorCryptosystem', - ]) + ]) lazy_import('sage.crypto.lfsr', ['lfsr_sequence', 'lfsr_autocorrelation', 'lfsr_connection_polynomial', - ]) + ]) del lazy_import diff --git a/src/sage/databases/all.py b/src/sage/databases/all.py index 871abbd5700..1b7e329a0f8 100644 --- a/src/sage/databases/all.py +++ b/src/sage/databases/all.py @@ -68,14 +68,14 @@ lazy_import('sage.databases.odlyzko', 'zeta_zeros') from sage.databases.db_modular_polynomials import \ - ClassicalModularPolynomialDatabase, \ - DedekindEtaModularPolynomialDatabase, \ - DedekindEtaModularCorrespondenceDatabase, \ - AtkinModularPolynomialDatabase, \ - AtkinModularCorrespondenceDatabase + ClassicalModularPolynomialDatabase, \ + DedekindEtaModularPolynomialDatabase, \ + DedekindEtaModularCorrespondenceDatabase, \ + AtkinModularPolynomialDatabase, \ + AtkinModularCorrespondenceDatabase from sage.databases.db_class_polynomials import \ - HilbertClassPolynomialDatabase + HilbertClassPolynomialDatabase lazy_import('sage.databases.cunningham_tables', 'cunningham_prime_factors') diff --git a/src/sage/dynamics/all.py b/src/sage/dynamics/all.py index 2502baaec8a..21b0bd54f9f 100644 --- a/src/sage/dynamics/all.py +++ b/src/sage/dynamics/all.py @@ -35,5 +35,6 @@ lazy_import('sage.dynamics.finite_dynamical_system', ['DiscreteDynamicalSystem']) -lazy_import('sage.dynamics', 'finite_dynamical_system_catalog', 'finite_dynamical_systems') +lazy_import('sage.dynamics', 'finite_dynamical_system_catalog', + 'finite_dynamical_systems') del lazy_import diff --git a/src/sage/ext/all__sagemath_categories.py b/src/sage/ext/all__sagemath_categories.py index 6210c1c60cb..ec13d6e405f 100644 --- a/src/sage/ext/all__sagemath_categories.py +++ b/src/sage/ext/all__sagemath_categories.py @@ -1,2 +1,2 @@ -from sage.ext.fast_callable import fast_callable -from sage.ext.fast_eval import fast_float +from sage.ext.fast_callable import fast_callable +from sage.ext.fast_eval import fast_float diff --git a/src/sage/functions/all.py b/src/sage/functions/all.py index 78faebe29e2..4e4c092bc0f 100644 --- a/src/sage/functions/all.py +++ b/src/sage/functions/all.py @@ -3,90 +3,92 @@ lazy_import('sage.functions.piecewise', 'piecewise') lazy_import('sage.functions.error', ['erf', 'erfc', 'erfi', 'erfinv', - 'fresnel_sin', 'fresnel_cos']) + 'fresnel_sin', 'fresnel_cos']) -from sage.functions.trig import ( sin, cos, sec, csc, cot, tan, - asin, acos, atan, - acot, acsc, asec, - arcsin, arccos, arctan, - arccot, arccsc, arcsec, - arctan2, atan2) +from sage.functions.trig import (sin, cos, sec, csc, cot, tan, + asin, acos, atan, + acot, acsc, asec, + arcsin, arccos, arctan, + arccot, arccsc, arcsec, + arctan2, atan2) -from sage.functions.hyperbolic import ( tanh, sinh, cosh, coth, sech, csch, - asinh, acosh, atanh, acoth, asech, acsch, - arcsinh, arccosh, arctanh, arccoth, arcsech, arccsch ) +from sage.functions.hyperbolic import (tanh, sinh, cosh, coth, sech, csch, + asinh, acosh, atanh, acoth, asech, acsch, + arcsinh, arccosh, arctanh, arccoth, arcsech, arccsch) -reciprocal_trig_functions = {'sec': cos, 'csc': sin, 'cot': tan, 'sech': cosh, 'csch': sinh, 'coth': tanh} +reciprocal_trig_functions = {'sec': cos, 'csc': sin, + 'cot': tan, 'sech': cosh, 'csch': sinh, 'coth': tanh} -from sage.functions.other import ( ceil, floor, abs_symbolic, sqrt, real_nth_root, - arg, real_part, real, frac, - factorial, binomial, - imag_part, imag, imaginary, conjugate, cases, - complex_root_of) +from sage.functions.other import (ceil, floor, abs_symbolic, sqrt, real_nth_root, + arg, real_part, real, frac, + factorial, binomial, + imag_part, imag, imaginary, conjugate, cases, + complex_root_of) -from sage.functions.log import (exp, exp_polar, log, ln, polylog, dilog, lambert_w, harmonic_number) +from sage.functions.log import (exp, exp_polar, log, ln, + polylog, dilog, lambert_w, harmonic_number) from sage.functions.transcendental import (zeta, zetaderiv, zeta_symmetric, hurwitz_zeta, - dickman_rho, stieltjes) + dickman_rho, stieltjes) from sage.functions.bessel import (bessel_I, bessel_J, bessel_K, bessel_Y, - Bessel, struve_H, struve_L, hankel1, hankel2, + Bessel, struve_H, struve_L, hankel1, hankel2, spherical_bessel_J, spherical_bessel_Y, spherical_hankel1, spherical_hankel2) from sage.functions.special import (spherical_harmonic, elliptic_e, - elliptic_f, elliptic_ec, elliptic_eu, - elliptic_kc, elliptic_pi, elliptic_j) + elliptic_f, elliptic_ec, elliptic_eu, + elliptic_kc, elliptic_pi, elliptic_j) from sage.functions.jacobi import (jacobi, inverse_jacobi, jacobi_nd, jacobi_ns, jacobi_nc, - jacobi_dn, jacobi_ds, jacobi_dc, jacobi_sn, jacobi_sd, - jacobi_sc, jacobi_cn, jacobi_cd, jacobi_cs, jacobi_am, - inverse_jacobi_nd, inverse_jacobi_ns, inverse_jacobi_nc, - inverse_jacobi_dn, inverse_jacobi_ds, inverse_jacobi_dc, - inverse_jacobi_sn, inverse_jacobi_sd, inverse_jacobi_sc, - inverse_jacobi_cn, inverse_jacobi_cd, inverse_jacobi_cs) + jacobi_dn, jacobi_ds, jacobi_dc, jacobi_sn, jacobi_sd, + jacobi_sc, jacobi_cn, jacobi_cd, jacobi_cs, jacobi_am, + inverse_jacobi_nd, inverse_jacobi_ns, inverse_jacobi_nc, + inverse_jacobi_dn, inverse_jacobi_ds, inverse_jacobi_dc, + inverse_jacobi_sn, inverse_jacobi_sd, inverse_jacobi_sc, + inverse_jacobi_cn, inverse_jacobi_cd, inverse_jacobi_cs) from sage.functions.orthogonal_polys import (chebyshev_T, - chebyshev_U, - gen_laguerre, - gen_legendre_P, - gen_legendre_Q, - hermite, - jacobi_P, - laguerre, - legendre_P, - legendre_Q, - ultraspherical, - gegenbauer, - krawtchouk, - meixner, - hahn) + chebyshev_U, + gen_laguerre, + gen_legendre_P, + gen_legendre_Q, + hermite, + jacobi_P, + laguerre, + legendre_P, + legendre_Q, + ultraspherical, + gegenbauer, + krawtchouk, + meixner, + hahn) from sage.functions.spike_function import spike_function from sage.functions.prime_pi import legendre_phi, partial_sieve_function, prime_pi from sage.functions.wigner import (wigner_3j, clebsch_gordan, racah, wigner_6j, - wigner_9j, gaunt) + wigner_9j, gaunt) from sage.functions.generalized import (dirac_delta, heaviside, unit_step, sgn, sign, - kronecker_delta) + kronecker_delta) from sage.functions.min_max import max_symbolic, min_symbolic from sage.functions.airy import airy_ai, airy_ai_prime, airy_bi, airy_bi_prime from sage.functions.exp_integral import (exp_integral_e, exp_integral_e1, log_integral, li, Li, - log_integral_offset, - sin_integral, cos_integral, Si, Ci, - sinh_integral, cosh_integral, Shi, Chi, - exponential_integral_1, Ei, exp_integral_ei) + log_integral_offset, + sin_integral, cos_integral, Si, Ci, + sinh_integral, cosh_integral, Shi, Chi, + exponential_integral_1, Ei, exp_integral_ei) from sage.functions.hypergeometric import hypergeometric, hypergeometric_M, hypergeometric_U from sage.functions.gamma import (gamma, psi, beta, log_gamma, - gamma_inc, gamma_inc_lower) + gamma_inc, gamma_inc_lower) Γ = gamma ψ = psi diff --git a/src/sage/geometry/all__sagemath_polyhedra.py b/src/sage/geometry/all__sagemath_polyhedra.py index d49257ff37d..0b1852de7a5 100644 --- a/src/sage/geometry/all__sagemath_polyhedra.py +++ b/src/sage/geometry/all__sagemath_polyhedra.py @@ -14,6 +14,7 @@ lazy_import('sage.geometry', 'lattice_polytope') lazy_import('sage.geometry', 'toric_plotter') lazy_import('sage.geometry.voronoi_diagram', 'VoronoiDiagram') -lazy_import('sage.geometry.hyperplane_arrangement.arrangement', 'HyperplaneArrangements') +lazy_import('sage.geometry.hyperplane_arrangement.arrangement', + 'HyperplaneArrangements') lazy_import('sage.geometry.hyperplane_arrangement.library', 'hyperplane_arrangements') del lazy_import diff --git a/src/sage/geometry/all__sagemath_symbolics.py b/src/sage/geometry/all__sagemath_symbolics.py index fb2ddf22675..fb690c97312 100644 --- a/src/sage/geometry/all__sagemath_symbolics.py +++ b/src/sage/geometry/all__sagemath_symbolics.py @@ -2,6 +2,6 @@ lazy_import('sage.geometry.hyperbolic_space.hyperbolic_interface', 'HyperbolicPlane') -from sage.geometry.riemannian_manifolds.all import * +from sage.geometry.riemannian_manifolds.all import * del lazy_import diff --git a/src/sage/geometry/polyhedron/all.py b/src/sage/geometry/polyhedron/all.py index dac1e2e5d0e..cda722f4d6b 100644 --- a/src/sage/geometry/polyhedron/all.py +++ b/src/sage/geometry/polyhedron/all.py @@ -2,5 +2,6 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.geometry.polyhedron.constructor', 'Polyhedron') lazy_import('sage.geometry.polyhedron.library', 'polytopes') -lazy_import('sage.geometry.polyhedron.combinatorial_polyhedron.base' , 'CombinatorialPolyhedron') +lazy_import('sage.geometry.polyhedron.combinatorial_polyhedron.base', + 'CombinatorialPolyhedron') del lazy_import diff --git a/src/sage/graphs/all.py b/src/sage/graphs/all.py index fd4c5457afd..58c96585dc6 100644 --- a/src/sage/graphs/all.py +++ b/src/sage/graphs/all.py @@ -4,7 +4,8 @@ lazy_import("sage.graphs.graph_generators", "graphs") lazy_import("sage.graphs.digraph_generators", "digraphs") lazy_import("sage.graphs.hypergraph_generators", "hypergraphs") -lazy_import("sage.graphs.graph_database", ["GraphDatabase", "GenericGraphQuery", "GraphQuery"]) +lazy_import("sage.graphs.graph_database", [ + "GraphDatabase", "GenericGraphQuery", "GraphQuery"]) from sage.graphs.graph import Graph from sage.graphs.digraph import DiGraph from sage.graphs.bipartite_graph import BipartiteGraph diff --git a/src/sage/groups/abelian_gps/all.py b/src/sage/groups/abelian_gps/all.py index 3a4b55e7e43..7efc7473356 100644 --- a/src/sage/groups/abelian_gps/all.py +++ b/src/sage/groups/abelian_gps/all.py @@ -2,7 +2,7 @@ all.py -- export of abelian groups to Sage """ -#***************************************************************************** +# ***************************************************************************** # # Sage: Open Source Mathematical Software # @@ -18,7 +18,7 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.groups.abelian_gps.all__sagemath_modules import * from sage.groups.abelian_gps.all__sagemath_gap import * diff --git a/src/sage/groups/abelian_gps/all__sagemath_modules.py b/src/sage/groups/abelian_gps/all__sagemath_modules.py index b4d50cbaf28..32a1f65f720 100644 --- a/src/sage/groups/abelian_gps/all__sagemath_modules.py +++ b/src/sage/groups/abelian_gps/all__sagemath_modules.py @@ -1,4 +1,4 @@ -#from dual_abelian_group import DualAbelianGroup +# from dual_abelian_group import DualAbelianGroup from sage.groups.abelian_gps.abelian_group import AbelianGroup, word_problem from sage.groups.abelian_gps.values import AbelianGroupWithValues diff --git a/src/sage/groups/all__sagemath_categories.py b/src/sage/groups/all__sagemath_categories.py index 960af07f9cc..18f110bd599 100644 --- a/src/sage/groups/all__sagemath_categories.py +++ b/src/sage/groups/all__sagemath_categories.py @@ -1,7 +1,7 @@ from sage.groups.all__sagemath_objects import * from sage.groups.generic import (discrete_log, discrete_log_rho, discrete_log_lambda, - linear_relation, multiple, multiples) + linear_relation, multiple, multiples) from sage.misc.lazy_import import lazy_import diff --git a/src/sage/groups/all__sagemath_groups.py b/src/sage/groups/all__sagemath_groups.py index 5f149199669..c27a9ca05c5 100644 --- a/src/sage/groups/all__sagemath_groups.py +++ b/src/sage/groups/all__sagemath_groups.py @@ -22,9 +22,11 @@ lazy_import('sage.groups.artin', 'ArtinGroup') lazy_import('sage.groups.raag', 'RightAngledArtinGroup') -lazy_import('sage.groups.semimonomial_transformations.semimonomial_transformation_group', 'SemimonomialTransformationGroup') +lazy_import('sage.groups.semimonomial_transformations.semimonomial_transformation_group', + 'SemimonomialTransformationGroup') lazy_import('sage.groups.group_exp', ['GroupExp', 'GroupExp_Class', 'GroupExpElement']) -lazy_import('sage.groups.group_semidirect_product', ['GroupSemidirectProduct', 'GroupSemidirectProductElement']) +lazy_import('sage.groups.group_semidirect_product', [ + 'GroupSemidirectProduct', 'GroupSemidirectProductElement']) del lazy_import diff --git a/src/sage/groups/perm_gps/all.py b/src/sage/groups/perm_gps/all.py index b1622efb65a..2cda7602d8c 100644 --- a/src/sage/groups/perm_gps/all.py +++ b/src/sage/groups/perm_gps/all.py @@ -1,20 +1,20 @@ from sage.groups.perm_gps.permgroup_named import (SymmetricGroup, AlternatingGroup, - DihedralGroup, SplitMetacyclicGroup, - SemidihedralGroup, CyclicPermutationGroup, - DiCyclicGroup, TransitiveGroup, - PGL, PSL, PSp, PSU, PGU, - MathieuGroup, KleinFourGroup, QuaternionGroup, - PrimitiveGroup, PrimitiveGroups, - SuzukiGroup, TransitiveGroups, - GeneralDihedralGroup, SmallPermutationGroup) + DihedralGroup, SplitMetacyclicGroup, + SemidihedralGroup, CyclicPermutationGroup, + DiCyclicGroup, TransitiveGroup, + PGL, PSL, PSp, PSU, PGU, + MathieuGroup, KleinFourGroup, QuaternionGroup, + PrimitiveGroup, PrimitiveGroups, + SuzukiGroup, TransitiveGroups, + GeneralDihedralGroup, SmallPermutationGroup) from sage.groups.perm_gps.permgroup import PermutationGroup, PermutationGroup_generic, PermutationGroup_subgroup, direct_product_permgroups from sage.groups.perm_gps.constructor import PermutationGroupElement from sage.groups.perm_gps.permgroup_morphism import (PermutationGroupMorphism as PermutationGroupMap, - PermutationGroupMorphism_im_gens, - PermutationGroupMorphism_id) + PermutationGroupMorphism_im_gens, + PermutationGroupMorphism_id) PermutationGroupMorphism = PermutationGroupMorphism_im_gens from sage.groups.perm_gps.cubegroup import CubeGroup, RubiksCube diff --git a/src/sage/interfaces/all.py b/src/sage/interfaces/all.py index fcd8b15731b..83100b2c3de 100644 --- a/src/sage/interfaces/all.py +++ b/src/sage/interfaces/all.py @@ -4,7 +4,7 @@ from sage.interfaces.gap import gap, gap_reset_workspace, Gap from sage.interfaces.gp import gp, gp_version, Gp # import problems -#from maxima_lib import maxima_lib +# from maxima_lib import maxima_lib from sage.interfaces.maxima import maxima, Maxima from sage.interfaces.singular import singular, singular_version, Singular diff --git a/src/sage/libs/mpmath/all.py b/src/sage/libs/mpmath/all.py index 63dd7c0e1fb..ea35faeb721 100644 --- a/src/sage/libs/mpmath/all.py +++ b/src/sage/libs/mpmath/all.py @@ -14,12 +14,13 @@ # Use mpmath internal functions for constants, to avoid unnecessary overhead _constants_funcs = { - 'glaisher': glaisher_fixed, - 'khinchin': khinchin_fixed, - 'twinprime': twinprime_fixed, - 'mertens': mertens_fixed + 'glaisher': glaisher_fixed, + 'khinchin': khinchin_fixed, + 'twinprime': twinprime_fixed, + 'mertens': mertens_fixed } + def eval_constant(name, ring): prec = ring.precision() + 20 return ring(_constants_funcs[name](prec)) >> prec diff --git a/src/sage/libs/ntl/all.py b/src/sage/libs/ntl/all.py index e9d4271879a..752ddf03899 100644 --- a/src/sage/libs/ntl/all.py +++ b/src/sage/libs/ntl/all.py @@ -29,12 +29,12 @@ from sage.libs.ntl.ntl_ZZ_pContext import ntl_ZZ_pContext as ZZ_pContext from sage.libs.ntl.ntl_ZZ_p import ( - ntl_ZZ_p as ZZ_p, - ntl_ZZ_p_random_element as ZZ_p_random ) + ntl_ZZ_p as ZZ_p, + ntl_ZZ_p_random_element as ZZ_p_random) from sage.libs.ntl.ntl_ZZX import ( - ntl_ZZX as ZZX, - zero_ZZX, one_ZZX ) + ntl_ZZX as ZZX, + zero_ZZX, one_ZZX) from sage.libs.ntl.ntl_ZZ_pX import ntl_ZZ_pX as ZZ_pX diff --git a/src/sage/libs/symmetrica/all.py b/src/sage/libs/symmetrica/all.py index b2914f4aab8..f69490654af 100644 --- a/src/sage/libs/symmetrica/all.py +++ b/src/sage/libs/symmetrica/all.py @@ -1,30 +1,30 @@ -#from symmetrica import * +# from symmetrica import * from sage.libs.symmetrica.symmetrica import start -#kostka +# kostka from sage.libs.symmetrica.symmetrica import kostka_number_symmetrica as kostka_number from sage.libs.symmetrica.symmetrica import kostka_tab_symmetrica as kostka_tab from sage.libs.symmetrica.symmetrica import kostka_tafel_symmetrica as kostka_tafel -#sab +# sab from sage.libs.symmetrica.symmetrica import dimension_symmetrization_symmetrica as dimension_symmetrization from sage.libs.symmetrica.symmetrica import bdg_symmetrica as bdg from sage.libs.symmetrica.symmetrica import sdg_symmetrica as sdg from sage.libs.symmetrica.symmetrica import odg_symmetrica as odg from sage.libs.symmetrica.symmetrica import specht_dg_symmetrica as specht_dg from sage.libs.symmetrica.symmetrica import ndg_symmetrica as ndg -#from symmetrica import glmndg_symmetrica as glmndg +# from symmetrica import glmndg_symmetrica as glmndg -#sc +# sc from sage.libs.symmetrica.symmetrica import chartafel_symmetrica as chartafel from sage.libs.symmetrica.symmetrica import charvalue_symmetrica as charvalue from sage.libs.symmetrica.symmetrica import kranztafel_symmetrica as kranztafel -#from symmetrica import c_ijk_sn_symmetrica as c_ijk_sn +# from symmetrica import c_ijk_sn_symmetrica as c_ijk_sn -#part +# part from sage.libs.symmetrica.symmetrica import strict_to_odd_part_symmetrica as strict_to_odd_part from sage.libs.symmetrica.symmetrica import odd_to_strict_part_symmetrica as odd_to_strict from sage.libs.symmetrica.symmetrica import q_core_symmetrica as q_core @@ -33,7 +33,7 @@ from sage.libs.symmetrica.symmetrica import random_partition_symmetrica as random_partition -#schur +# schur from sage.libs.symmetrica.symmetrica import outerproduct_schur_symmetrica as outerproduct_schur from sage.libs.symmetrica.symmetrica import dimension_schur_symmetrica as dimension_schur from sage.libs.symmetrica.symmetrica import part_part_skewschur_symmetrica as part_part_skewschur @@ -84,11 +84,11 @@ from sage.libs.symmetrica.symmetrica import scalarproduct_schur_symmetrica as scalarproduct_schur -#plet +# plet from sage.libs.symmetrica.symmetrica import plethysm_symmetrica as plethysm from sage.libs.symmetrica.symmetrica import schur_schur_plet_symmetrica as schur_schur_plet -#sb +# sb from sage.libs.symmetrica.symmetrica import mult_schubert_schubert_symmetrica as mult_schubert_schubert from sage.libs.symmetrica.symmetrica import t_SCHUBERT_POLYNOM_symmetrica as t_SCHUBERT_POLYNOM from sage.libs.symmetrica.symmetrica import t_POLYNOM_SCHUBERT_symmetrica as t_POLYNOM_SCHUBERT diff --git a/src/sage/matrix/all.py b/src/sage/matrix/all.py index 698b5f3c7c2..0902e081afb 100644 --- a/src/sage/matrix/all.py +++ b/src/sage/matrix/all.py @@ -1,8 +1,8 @@ from sage.misc.lazy_import import lazy_import from sage.matrix.matrix_space import MatrixSpace from sage.matrix.constructor import (matrix, Matrix, column_matrix, random_matrix, - diagonal_matrix, identity_matrix, block_matrix, - block_diagonal_matrix, jordan_block, zero_matrix, - ones_matrix, elementary_matrix, companion_matrix) + diagonal_matrix, identity_matrix, block_matrix, + block_diagonal_matrix, jordan_block, zero_matrix, + ones_matrix, elementary_matrix, companion_matrix) Mat = MatrixSpace del lazy_import diff --git a/src/sage/misc/all.py b/src/sage/misc/all.py index e22f9c60cda..c74ffe9727a 100644 --- a/src/sage/misc/all.py +++ b/src/sage/misc/all.py @@ -1,4 +1,4 @@ -#from sage.misc.all__sagemath_objects import * +# from sage.misc.all__sagemath_objects import * from sage.misc.all__sagemath_environment import * from sage.misc.all__sagemath_modules import * from sage.misc.all__sagemath_repl import * diff --git a/src/sage/misc/all__sagemath_categories.py b/src/sage/misc/all__sagemath_categories.py index 8145d387ae4..46be65b787c 100644 --- a/src/sage/misc/all__sagemath_categories.py +++ b/src/sage/misc/all__sagemath_categories.py @@ -12,66 +12,66 @@ from sage.misc.mrange import xmrange, mrange, xmrange_iter, mrange_iter, cartesian_product_iterator from sage.misc.defaults import (set_default_variable_name, - series_precision, set_series_precision) + series_precision, set_series_precision) from sage.misc.functional import (additive_order, - base_ring, - base_field, - basis, - category, - charpoly, - characteristic_polynomial, - coerce, - cyclotomic_polynomial, - decomposition, - denominator, - det, - dimension, - dim, - discriminant, - disc, - eta, - fcp, - gen, - gens, - hecke_operator, - image, - integral, integrate, - integral_closure, - interval, - xinterval, - is_commutative, - is_even, - is_integrally_closed, - is_field, - is_odd, - kernel, - krull_dimension, - lift, - log as log_b, - minimal_polynomial, - minpoly, - multiplicative_order, - ngens, - norm, - numerator, - numerical_approx, - n, N, - objgens, - objgen, - order, - rank, - regulator, - round, - quotient, - quo, - isqrt, - squarefree_part, - sqrt, - symbolic_sum as sum, - symbolic_prod as product, - transpose) + base_ring, + base_field, + basis, + category, + charpoly, + characteristic_polynomial, + coerce, + cyclotomic_polynomial, + decomposition, + denominator, + det, + dimension, + dim, + discriminant, + disc, + eta, + fcp, + gen, + gens, + hecke_operator, + image, + integral, integrate, + integral_closure, + interval, + xinterval, + is_commutative, + is_even, + is_integrally_closed, + is_field, + is_odd, + kernel, + krull_dimension, + lift, + log as log_b, + minimal_polynomial, + minpoly, + multiplicative_order, + ngens, + norm, + numerator, + numerical_approx, + n, N, + objgens, + objgen, + order, + rank, + regulator, + round, + quotient, + quo, + isqrt, + squarefree_part, + sqrt, + symbolic_sum as sum, + symbolic_prod as product, + transpose) from sage.misc.latex import LatexExpr, latex, view diff --git a/src/sage/misc/all__sagemath_modules.py b/src/sage/misc/all__sagemath_modules.py index 158f41ed686..8111aee2a29 100644 --- a/src/sage/misc/all__sagemath_modules.py +++ b/src/sage/misc/all__sagemath_modules.py @@ -6,12 +6,12 @@ from sage.misc.all__sagemath_categories import * from sage.misc.misc import (BackslashOperator, # Depends on sage.env -- can lower to sagemath-objects after splitting this module - exists, forall, is_iterator, - random_sublist, - pad_zeros, - SAGE_DB, - newton_method_sizes, compose, - nest) + exists, forall, is_iterator, + random_sublist, + pad_zeros, + SAGE_DB, + newton_method_sizes, compose, + nest) from sage.misc.temporary_file import tmp_dir, tmp_filename # Depends on sage.env diff --git a/src/sage/misc/all__sagemath_objects.py b/src/sage/misc/all__sagemath_objects.py index 30a76f38fab..2ae6508a5ea 100644 --- a/src/sage/misc/all__sagemath_objects.py +++ b/src/sage/misc/all__sagemath_objects.py @@ -6,7 +6,7 @@ from sage.misc.lazy_import import lazy_import from sage.misc.verbose import (set_verbose, set_verbose_files, - get_verbose_files, unset_verbose_files, get_verbose) + get_verbose_files, unset_verbose_files, get_verbose) lazy_import('sage.misc.verbose', 'verbose', deprecation=17815) from sage.misc.call import attrcall diff --git a/src/sage/misc/all__sagemath_repl.py b/src/sage/misc/all__sagemath_repl.py index 15074e16be1..2f638230b42 100644 --- a/src/sage/misc/all__sagemath_repl.py +++ b/src/sage/misc/all__sagemath_repl.py @@ -7,8 +7,8 @@ from sage.misc.banner import version lazy_import('sage.misc.sagedoc', ['browse_sage_doc', - 'search_src', 'search_def', 'search_doc', - 'tutorial', 'reference', 'manual', 'developer', - 'constructions', 'help']) + 'search_src', 'search_def', 'search_doc', + 'tutorial', 'reference', 'manual', 'developer', + 'constructions', 'help']) lazy_import('pydoc', 'help', 'python_help') diff --git a/src/sage/modular/all.py b/src/sage/modular/all.py index 75aa498109e..73048018c69 100644 --- a/src/sage/modular/all.py +++ b/src/sage/modular/all.py @@ -11,12 +11,12 @@ from sage.modular.abvar.all import * from sage.modular.dirichlet import (DirichletGroup, - kronecker_character, kronecker_character_upside_down, - trivial_character) + kronecker_character, kronecker_character_upside_down, + trivial_character) from sage.modular.arithgroup.all import (Gamma0, Gamma1, GammaH, Gamma, SL2Z, - ArithmeticSubgroup_Permutation, - CongruenceSubgroup, FareySymbol) + ArithmeticSubgroup_Permutation, + CongruenceSubgroup, FareySymbol) from sage.modular.cusps import Cusp, Cusps @@ -28,7 +28,7 @@ deprecation=(32647, 'removed from main namespace')) from sage.modular.etaproducts import (EtaGroup, EtaProduct, EtaGroupElement, - AllCusps, CuspFamily) + AllCusps, CuspFamily) lazy_import('sage.modular.multiple_zeta', ['Multizeta', 'Multizetas']) diff --git a/src/sage/modular/arithgroup/all.py b/src/sage/modular/arithgroup/all.py index 3e189a658c9..2915566b73c 100644 --- a/src/sage/modular/arithgroup/all.py +++ b/src/sage/modular/arithgroup/all.py @@ -13,7 +13,7 @@ lazy_import('sage.modular.arithgroup.arithgroup_perm', 'ArithmeticSubgroup_Permutation') from sage.modular.arithgroup.congroup import (degeneracy_coset_representatives_gamma0, - degeneracy_coset_representatives_gamma1) + degeneracy_coset_representatives_gamma1) from sage.modular.arithgroup.farey_symbol import Farey as FareySymbol del lazy_import diff --git a/src/sage/modular/btquotients/all.py b/src/sage/modular/btquotients/all.py index 5d11aed1020..1e96b2db99b 100644 --- a/src/sage/modular/btquotients/all.py +++ b/src/sage/modular/btquotients/all.py @@ -1,3 +1,3 @@ from sage.modular.btquotients.btquotient import BruhatTitsQuotient -#from pautomorphicform import pAdicAutomorphicForms -#from pautomorphicform import BruhatTitsHarmonicCocycles +# from pautomorphicform import pAdicAutomorphicForms +# from pautomorphicform import BruhatTitsHarmonicCocycles diff --git a/src/sage/modular/hecke/all.py b/src/sage/modular/hecke/all.py index bd5bb292c43..3c9230a2520 100644 --- a/src/sage/modular/hecke/all.py +++ b/src/sage/modular/hecke/all.py @@ -9,8 +9,8 @@ from sage.modular.hecke.algebra import HeckeAlgebra, is_HeckeAlgebra from sage.modular.hecke.morphism import (HeckeModuleMorphism, HeckeModuleMorphism_matrix, - is_HeckeModuleMorphism, - is_HeckeModuleMorphism_matrix) + is_HeckeModuleMorphism, + is_HeckeModuleMorphism_matrix) from sage.modular.hecke.element import HeckeModuleElement, is_HeckeModuleElement diff --git a/src/sage/modular/modform_hecketriangle/all.py b/src/sage/modular/modform_hecketriangle/all.py index 1d3ad5aa289..1c2bfeccdc6 100644 --- a/src/sage/modular/modform_hecketriangle/all.py +++ b/src/sage/modular/modform_hecketriangle/all.py @@ -16,14 +16,14 @@ from sage.modular.modform_hecketriangle.series_constructor import MFSeriesConstructor from sage.modular.modform_hecketriangle.graded_ring import (QuasiMeromorphicModularFormsRing, - QuasiWeakModularFormsRing, QuasiModularFormsRing, - QuasiCuspFormsRing, MeromorphicModularFormsRing, - WeakModularFormsRing, - ModularFormsRing, CuspFormsRing) + QuasiWeakModularFormsRing, QuasiModularFormsRing, + QuasiCuspFormsRing, MeromorphicModularFormsRing, + WeakModularFormsRing, + ModularFormsRing, CuspFormsRing) from sage.modular.modform_hecketriangle.space import (QuasiMeromorphicModularForms, QuasiWeakModularForms, - QuasiModularForms, QuasiCuspForms, - MeromorphicModularForms, WeakModularForms, ModularForms, - CuspForms, ZeroForm) + QuasiModularForms, QuasiCuspForms, + MeromorphicModularForms, WeakModularForms, ModularForms, + CuspForms, ZeroForm) from sage.modular.modform_hecketriangle.subspace import ModularFormsSubSpace diff --git a/src/sage/monoids/all.py b/src/sage/monoids/all.py index a08f8df0f43..7b4543dd34c 100644 --- a/src/sage/monoids/all.py +++ b/src/sage/monoids/all.py @@ -1,7 +1,7 @@ from sage.monoids.free_monoid import FreeMonoid from sage.monoids.string_monoid import (BinaryStrings, OctalStrings, HexadecimalStrings, - Radix64Strings, AlphabeticStrings) + Radix64Strings, AlphabeticStrings) from sage.monoids.free_abelian_monoid import FreeAbelianMonoid diff --git a/src/sage/plot/all.py b/src/sage/plot/all.py index 6d10496e11c..4d7d65ecf62 100644 --- a/src/sage/plot/all.py +++ b/src/sage/plot/all.py @@ -1,8 +1,8 @@ from sage.plot.graphics import Graphics from sage.plot.plot import (plot, graphics_array, multi_graphics, list_plot, - parametric_plot, polar_plot, plot_loglog, plot_semilogx, - plot_semilogy, list_plot_loglog, list_plot_semilogx, - list_plot_semilogy) + parametric_plot, polar_plot, plot_loglog, plot_semilogx, + plot_semilogy, list_plot_loglog, list_plot_semilogx, + list_plot_semilogy) from sage.plot.line import line, line2d from sage.plot.arrow import arrow, arrow2d from sage.plot.bar_chart import bar_chart @@ -22,7 +22,7 @@ from sage.plot.streamline_plot import streamline_plot from sage.misc.lazy_import import lazy_import -lazy_import("sage.plot.complex_plot",["complex_plot"]) +lazy_import("sage.plot.complex_plot", ["complex_plot"]) from sage.plot.arc import arc @@ -35,6 +35,7 @@ from sage.plot.step import plot_step_function lazy_import("sage.plot.hyperbolic_arc", "hyperbolic_arc") -lazy_import("sage.plot.hyperbolic_polygon", ["hyperbolic_triangle", "hyperbolic_polygon"]) +lazy_import("sage.plot.hyperbolic_polygon", [ + "hyperbolic_triangle", "hyperbolic_polygon"]) lazy_import("sage.plot.hyperbolic_regular_polygon", "hyperbolic_regular_polygon") del lazy_import diff --git a/src/sage/plot/plot3d/all.py b/src/sage/plot/plot3d/all.py index 4838f73c016..1fc801284f5 100644 --- a/src/sage/plot/plot3d/all.py +++ b/src/sage/plot/plot3d/all.py @@ -1,22 +1,22 @@ -from sage.plot.plot3d.plot3d import plot3d, cylindrical_plot3d, spherical_plot3d, Spherical, SphericalElevation, Cylindrical +from sage.plot.plot3d.plot3d import plot3d, cylindrical_plot3d, spherical_plot3d, Spherical, SphericalElevation, Cylindrical from sage.plot.plot3d.parametric_plot3d import parametric_plot3d -from sage.plot.plot3d.plot_field3d import plot_vector_field3d +from sage.plot.plot3d.plot_field3d import plot_vector_field3d # We lazy_import the following modules since they import numpy which slows down sage startup from sage.misc.lazy_import import lazy_import -lazy_import("sage.plot.plot3d.implicit_plot3d",["implicit_plot3d"]) +lazy_import("sage.plot.plot3d.implicit_plot3d", ["implicit_plot3d"]) -from sage.plot.plot3d.list_plot3d import list_plot3d +from sage.plot.plot3d.list_plot3d import list_plot3d from sage.plot.plot3d.revolution_plot3d import revolution_plot3d -from sage.plot.plot3d.platonic import tetrahedron, cube, octahedron, dodecahedron, icosahedron +from sage.plot.plot3d.platonic import tetrahedron, cube, octahedron, dodecahedron, icosahedron -from sage.plot.plot3d.shapes2 import sphere, line3d, polygon3d, polygons3d, point3d, text3d, bezier3d +from sage.plot.plot3d.shapes2 import sphere, line3d, polygon3d, polygons3d, point3d, text3d, bezier3d -from sage.plot.plot3d.shapes import arrow3d +from sage.plot.plot3d.shapes import arrow3d -#from shapes import Box, ColorCube, Cone, Cylinder, LineSegment, Arrow, Sphere, Torus, Text as Text3D -#from parametric_surface import ParametricSurface, MoebiusStrip -#from plot3d import plot3d, axes as axes3d +# from shapes import Box, ColorCube, Cone, Cylinder, LineSegment, Arrow, Sphere, Torus, Text as Text3D +# from parametric_surface import ParametricSurface, MoebiusStrip +# from plot3d import plot3d, axes as axes3d del lazy_import diff --git a/src/sage/probability/all.py b/src/sage/probability/all.py index 6ac09a72160..646f3d5a2ad 100644 --- a/src/sage/probability/all.py +++ b/src/sage/probability/all.py @@ -1,9 +1,9 @@ from sage.probability.random_variable import ( - DiscreteRandomVariable, - DiscreteProbabilitySpace ) + DiscreteRandomVariable, + DiscreteProbabilitySpace) from sage.probability.probability_distribution import ( RealDistribution, SphericalDistribution, - GeneralDiscreteDistribution ) + GeneralDiscreteDistribution) diff --git a/src/sage/quadratic_forms/all__sagemath_modules.py b/src/sage/quadratic_forms/all__sagemath_modules.py index a5430b77a9c..62516aead2a 100644 --- a/src/sage/quadratic_forms/all__sagemath_modules.py +++ b/src/sage/quadratic_forms/all__sagemath_modules.py @@ -5,7 +5,7 @@ from sage.quadratic_forms.quadratic_form import QuadraticForm, DiagonalQuadraticForm, quadratic_form_from_invariants from sage.quadratic_forms.random_quadraticform import (random_quadraticform, random_quadraticform_with_conditions, - random_ternaryqf, random_ternaryqf_with_conditions) + random_ternaryqf, random_ternaryqf_with_conditions) from sage.quadratic_forms.extras import least_quadratic_nonresidue, extend_to_primitive, is_triangular_number diff --git a/src/sage/quadratic_forms/all__sagemath_pari.py b/src/sage/quadratic_forms/all__sagemath_pari.py index eddc562392c..3217ed8cd0a 100644 --- a/src/sage/quadratic_forms/all__sagemath_pari.py +++ b/src/sage/quadratic_forms/all__sagemath_pari.py @@ -1,5 +1,5 @@ from sage.quadratic_forms.special_values import (gamma__exact, zeta__exact, QuadraticBernoulliNumber, - quadratic_L_function__exact, quadratic_L_function__numerical) + quadratic_L_function__exact, quadratic_L_function__numerical) from sage.quadratic_forms.genera.genus import Genus diff --git a/src/sage/repl/all.py b/src/sage/repl/all.py index 0b0ef116059..809cea7d7e5 100644 --- a/src/sage/repl/all.py +++ b/src/sage/repl/all.py @@ -5,8 +5,8 @@ lazy_import('sage.repl.interpreter', 'preparser') lazy_import('sage.repl.attach', [ - 'attach', 'detach', 'attached_files', 'load_attach_path', - 'reset_load_attach_path', 'load_attach_mode']) + 'attach', 'detach', 'attached_files', 'load_attach_path', + 'reset_load_attach_path', 'load_attach_mode']) from sage.repl.rich_output.display_manager import get_display_manager diff --git a/src/sage/repl/ipython_kernel/all_jupyter.py b/src/sage/repl/ipython_kernel/all_jupyter.py index 69bf0549da1..3e6eca3e004 100644 --- a/src/sage/repl/ipython_kernel/all_jupyter.py +++ b/src/sage/repl/ipython_kernel/all_jupyter.py @@ -5,5 +5,5 @@ from sage.all_cmdline import * from sage.repl.ipython_kernel.widgets_sagenb import (input_box, text_control, slider, - range_slider, checkbox, selector, input_grid, color_selector) + range_slider, checkbox, selector, input_grid, color_selector) from sage.repl.ipython_kernel.interact import interact diff --git a/src/sage/rings/all.py b/src/sage/rings/all.py index 82293bfd1c4..965f83d02f6 100644 --- a/src/sage/rings/all.py +++ b/src/sage/rings/all.py @@ -14,7 +14,7 @@ from sage.rings.all__sagemath_categories import * -### Following will go to all__sagemath_categories.py in #36566 +# Following will go to all__sagemath_categories.py in #36566 # Quotient from sage.rings.quotient_ring import QuotientRing @@ -37,7 +37,7 @@ from sage.rings.finite_rings.integer_mod import IntegerMod, Mod, mod Integers = IntegerModRing -### up to here (#36566) +# up to here (#36566) # Finite fields from sage.rings.finite_rings.all import * @@ -55,7 +55,7 @@ # Function field from sage.rings.function_field.all import * -### Following will go to all__sagemath_categories.py in #36566 +# Following will go to all__sagemath_categories.py in #36566 # Semirings from sage.rings.semirings.all import * @@ -66,12 +66,12 @@ # Lazy reals from sage.rings.real_lazy import RealLazyField, RLF, ComplexLazyField, CLF -### up to here (#36566) +# up to here (#36566) # Polynomial Rings and Polynomial Quotient Rings from sage.rings.polynomial.all import * -### Following will go to all__sagemath_categories.py in #36566 +# Following will go to all__sagemath_categories.py in #36566 # Power series rings from sage.rings.power_series_ring import PowerSeriesRing @@ -92,25 +92,26 @@ # Localization from sage.rings.localization import Localization -### up to here (#36566) +# up to here (#36566) # c-finite sequences from sage.rings.cfinite_sequence import CFiniteSequence, CFiniteSequences from sage.rings.fast_arith import prime_range -### Following will go to all__sagemath_categories.py in #36566 +# Following will go to all__sagemath_categories.py in #36566 # continued fractions from sage.rings.continued_fraction import (continued_fraction, continued_fraction_list) -### up to here (#36566) +# up to here (#36566) # asymptotic ring -#from sage.rings.asymptotic.all import * +# from sage.rings.asymptotic.all import * lazy_import('sage.rings.asymptotic.asymptotic_ring', 'AsymptoticRing') -lazy_import('sage.rings.asymptotic.asymptotic_expansion_generators', 'asymptotic_expansions') +lazy_import('sage.rings.asymptotic.asymptotic_expansion_generators', + 'asymptotic_expansions') # Register classes in numbers abc from sage.rings import numbers_abc diff --git a/src/sage/rings/all__sagemath_categories.py b/src/sage/rings/all__sagemath_categories.py index 04e818c55b0..7c69f137275 100644 --- a/src/sage/rings/all__sagemath_categories.py +++ b/src/sage/rings/all__sagemath_categories.py @@ -1,21 +1,21 @@ # Ring base classes from sage.rings.ring import (Ring, Field, CommutativeRing, IntegralDomain, - DedekindDomain, PrincipalIdealDomain, EuclideanDomain) + DedekindDomain, PrincipalIdealDomain, EuclideanDomain) # Ring element base classes from sage.structure.element import (CommutativeAlgebraElement, - RingElement, CommutativeRingElement, IntegralDomainElement, - DedekindDomainElement, PrincipalIdealDomainElement, - EuclideanDomainElement, FieldElement) + RingElement, CommutativeRingElement, IntegralDomainElement, + DedekindDomainElement, PrincipalIdealDomainElement, + EuclideanDomainElement, FieldElement) # Ideals from sage.rings.ideal import Ideal ideal = Ideal -### To be added in #36566: +# To be added in #36566: -#from sage.rings.finite_rings.all__sagemath_categories import * -#from sage.rings.function_field.all__sagemath_categories import * -#from sage.rings.number_field.all__sagemath_categories import * -#from sage.rings.padics.all__sagemath_categories import * -#from sage.rings.polynomial.all__sagemath_categories import * +# from sage.rings.finite_rings.all__sagemath_categories import * +# from sage.rings.function_field.all__sagemath_categories import * +# from sage.rings.number_field.all__sagemath_categories import * +# from sage.rings.padics.all__sagemath_categories import * +# from sage.rings.polynomial.all__sagemath_categories import * diff --git a/src/sage/rings/all__sagemath_flint.py b/src/sage/rings/all__sagemath_flint.py index 95373001294..098426b0e9b 100644 --- a/src/sage/rings/all__sagemath_flint.py +++ b/src/sage/rings/all__sagemath_flint.py @@ -13,19 +13,20 @@ # Algebraic numbers from sage.rings.qqbar import (AlgebraicRealField, AA, - AlgebraicReal, - AlgebraicField, QQbar, - AlgebraicNumber, - number_field_elements_from_algebraics) + AlgebraicReal, + AlgebraicField, QQbar, + AlgebraicNumber, + number_field_elements_from_algebraics) # Intervals from sage.rings.real_mpfi import (RealIntervalField, - RIF, - RealInterval) + RIF, + RealInterval) # Complex numbers from sage.rings.complex_interval_field import ComplexIntervalField -from sage.rings.complex_interval import (create_ComplexIntervalFieldElement as ComplexIntervalFieldElement) +from sage.rings.complex_interval import ( + create_ComplexIntervalFieldElement as ComplexIntervalFieldElement) from sage.misc.lazy_import import lazy_import diff --git a/src/sage/rings/all__sagemath_modules.py b/src/sage/rings/all__sagemath_modules.py index 3096135b7e0..c82909b5984 100644 --- a/src/sage/rings/all__sagemath_modules.py +++ b/src/sage/rings/all__sagemath_modules.py @@ -5,7 +5,7 @@ # Real numbers from sage.rings.real_mpfr import (RealField, RR, - create_RealNumber as RealNumber) # this is used by the preparser to wrap real literals -- very important. + create_RealNumber as RealNumber) # this is used by the preparser to wrap real literals -- very important. Reals = RealField # Complex numbers diff --git a/src/sage/rings/asymptotic/all.py b/src/sage/rings/asymptotic/all.py index ba428ed2240..27e4d289212 100644 --- a/src/sage/rings/asymptotic/all.py +++ b/src/sage/rings/asymptotic/all.py @@ -1,4 +1,5 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.rings.asymptotic.asymptotic_ring', 'AsymptoticRing') -lazy_import('sage.rings.asymptotic.asymptotic_expansion_generators', 'asymptotic_expansions') +lazy_import('sage.rings.asymptotic.asymptotic_expansion_generators', + 'asymptotic_expansions') del lazy_import diff --git a/src/sage/rings/finite_rings/all.py b/src/sage/rings/finite_rings/all.py index 92c168e2623..06187529bd6 100644 --- a/src/sage/rings/finite_rings/all.py +++ b/src/sage/rings/finite_rings/all.py @@ -2,7 +2,7 @@ Finite Fields """ -#***************************************************************************** +# ***************************************************************************** # Copyright (C) 2010 David Roe # William Stein # @@ -16,6 +16,6 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.rings.finite_rings.all__sagemath_categories import * diff --git a/src/sage/rings/number_field/all.py b/src/sage/rings/number_field/all.py index 72e0d56d1a0..73cf7750d43 100644 --- a/src/sage/rings/number_field/all.py +++ b/src/sage/rings/number_field/all.py @@ -1,6 +1,6 @@ from sage.rings.number_field.number_field import (NumberField, NumberFieldTower, CyclotomicField, QuadraticField, - is_fundamental_discriminant, is_real_place) + is_fundamental_discriminant, is_real_place) from sage.rings.number_field.number_field_element import NumberFieldElement from sage.rings.number_field.order import EquationOrder, GaussianIntegers, EisensteinIntegers @@ -9,8 +9,10 @@ lazy_import('sage.rings.number_field.totallyreal', 'enumerate_totallyreal_fields_prim') lazy_import('sage.rings.number_field.totallyreal_data', 'hermite_constant') -lazy_import('sage.rings.number_field.totallyreal_rel', 'enumerate_totallyreal_fields_all') -lazy_import('sage.rings.number_field.totallyreal_rel', 'enumerate_totallyreal_fields_rel') +lazy_import('sage.rings.number_field.totallyreal_rel', + 'enumerate_totallyreal_fields_all') +lazy_import('sage.rings.number_field.totallyreal_rel', + 'enumerate_totallyreal_fields_rel') from sage.rings.number_field.unit_group import UnitGroup diff --git a/src/sage/schemes/affine/all.py b/src/sage/schemes/affine/all.py index 31edc39276b..bae2e970277 100644 --- a/src/sage/schemes/affine/all.py +++ b/src/sage/schemes/affine/all.py @@ -2,7 +2,7 @@ all.py -- export of affine to Sage """ -#***************************************************************************** +# ***************************************************************************** # # Sage: Open Source Mathematical Software # @@ -18,7 +18,7 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.schemes.affine.affine_space import AffineSpace from sage.schemes.affine.affine_rational_point import enum_affine_rational_field, enum_affine_finite_field diff --git a/src/sage/schemes/all.py b/src/sage/schemes/all.py index bc5b7441628..ce3c29058fd 100644 --- a/src/sage/schemes/all.py +++ b/src/sage/schemes/all.py @@ -2,7 +2,7 @@ all.py -- export of schemes to Sage """ -#***************************************************************************** +# ***************************************************************************** # # Sage: Open Source Mathematical Software # @@ -18,7 +18,7 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.schemes.all__sagemath_categories import * from sage.schemes.all__sagemath_polyhedra import * diff --git a/src/sage/schemes/curves/all.py b/src/sage/schemes/curves/all.py index ec0af61d2f7..67f19a5dbbe 100644 --- a/src/sage/schemes/curves/all.py +++ b/src/sage/schemes/curves/all.py @@ -2,7 +2,7 @@ Plane curves """ -#***************************************************************************** +# ***************************************************************************** # # Sage: Open Source Mathematical Software # @@ -18,7 +18,7 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.schemes.curves.constructor import Curve diff --git a/src/sage/schemes/elliptic_curves/all.py b/src/sage/schemes/elliptic_curves/all.py index 0b79dee7dc8..35e49ae4806 100644 --- a/src/sage/schemes/elliptic_curves/all.py +++ b/src/sage/schemes/elliptic_curves/all.py @@ -2,7 +2,7 @@ Exported elliptic curves functionality """ -#***************************************************************************** +# ***************************************************************************** # Copyright (C) 2005 William Stein # # Distributed under the terms of the GNU General Public License (GPL) @@ -15,13 +15,13 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.schemes.elliptic_curves.constructor import (EllipticCurve, - EllipticCurve_from_c4c6, - EllipticCurve_from_j, - EllipticCurve_from_cubic, - EllipticCurves_with_good_reduction_outside_S) + EllipticCurve_from_c4c6, + EllipticCurve_from_j, + EllipticCurve_from_cubic, + EllipticCurves_with_good_reduction_outside_S) from sage.misc.lazy_import import lazy_import lazy_import('sage.schemes.elliptic_curves.jacobian', 'Jacobian') @@ -29,10 +29,10 @@ lazy_import('sage.schemes.elliptic_curves.ell_rational_field', ['cremona_curves', 'cremona_optimal_curves']) -from sage.schemes.elliptic_curves.cm import ( cm_orders, - cm_j_invariants, - cm_j_invariants_and_orders, - hilbert_class_polynomial ) +from sage.schemes.elliptic_curves.cm import (cm_orders, + cm_j_invariants, + cm_j_invariants_and_orders, + hilbert_class_polynomial) lazy_import('sage.schemes.elliptic_curves.ec_database', 'elliptic_curves') diff --git a/src/sage/schemes/hyperelliptic_curves/all.py b/src/sage/schemes/hyperelliptic_curves/all.py index e314dceb1e0..40c8b58e823 100644 --- a/src/sage/schemes/hyperelliptic_curves/all.py +++ b/src/sage/schemes/hyperelliptic_curves/all.py @@ -41,6 +41,7 @@ ['igusa_clebsch_invariants', 'absolute_igusa_invariants_kohel', 'absolute_igusa_invariants_wamelen', 'clebsch_invariants'], deprecation=28064) -from sage.schemes.hyperelliptic_curves.mestre import (Mestre_conic, HyperellipticCurve_from_invariants) +from sage.schemes.hyperelliptic_curves.mestre import ( + Mestre_conic, HyperellipticCurve_from_invariants) from sage.schemes.hyperelliptic_curves import monsky_washnitzer del lazy_import diff --git a/src/sage/schemes/jacobians/all.py b/src/sage/schemes/jacobians/all.py index ec769450947..f087d853e90 100644 --- a/src/sage/schemes/jacobians/all.py +++ b/src/sage/schemes/jacobians/all.py @@ -1 +1 @@ -#from abstract_jacobian import is_Jacobian, Jacobian +# from abstract_jacobian import is_Jacobian, Jacobian diff --git a/src/sage/schemes/projective/all.py b/src/sage/schemes/projective/all.py index 91c821115d1..665f57da9ee 100644 --- a/src/sage/schemes/projective/all.py +++ b/src/sage/schemes/projective/all.py @@ -2,7 +2,7 @@ all.py -- export of projective schemes to Sage """ -#***************************************************************************** +# ***************************************************************************** # # Sage: Open Source Mathematical Software # @@ -18,6 +18,6 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.schemes.projective.projective_space import ProjectiveSpace, is_ProjectiveSpace diff --git a/src/sage/sets/all.py b/src/sage/sets/all.py index 328fcfa96ac..8cdd85ed269 100644 --- a/src/sage/sets/all.py +++ b/src/sage/sets/all.py @@ -5,7 +5,7 @@ from sage.sets.non_negative_integers import NonNegativeIntegers from sage.sets.positive_integers import PositiveIntegers from sage.sets.finite_enumerated_set import FiniteEnumeratedSet -lazy_import('sage.sets.recursively_enumerated_set','RecursivelyEnumeratedSet') +lazy_import('sage.sets.recursively_enumerated_set', 'RecursivelyEnumeratedSet') from sage.sets.totally_ordered_finite_set import TotallyOrderedFiniteSet from sage.sets.disjoint_union_enumerated_sets import DisjointUnionEnumeratedSets from sage.sets.primes import Primes diff --git a/src/sage/stats/hmm/all.py b/src/sage/stats/hmm/all.py index d331f45b41c..e2880a402dc 100644 --- a/src/sage/stats/hmm/all.py +++ b/src/sage/stats/hmm/all.py @@ -8,6 +8,7 @@ # We lazy_import the following modules since they import numpy which slows down sage startup from sage.misc.lazy_import import lazy_import lazy_import("sage.stats.hmm.hmm", ["DiscreteHiddenMarkovModel"]) -lazy_import("sage.stats.hmm.chmm", ["GaussianHiddenMarkovModel","GaussianMixtureHiddenMarkovModel"]) +lazy_import("sage.stats.hmm.chmm", [ + "GaussianHiddenMarkovModel", "GaussianMixtureHiddenMarkovModel"]) lazy_import("sage.stats.hmm.distributions", ["GaussianMixtureDistribution"]) del lazy_import diff --git a/src/sage/structure/all.py b/src/sage/structure/all.py index df0114c8382..673a6488625 100644 --- a/src/sage/structure/all.py +++ b/src/sage/structure/all.py @@ -12,7 +12,7 @@ get_coercion_model, coercion_traceback, parent - ) +) from sage.structure.parent import Parent diff --git a/src/sage/symbolic/all.py b/src/sage/symbolic/all.py index 742f49146ca..8e1c9600409 100644 --- a/src/sage/symbolic/all.py +++ b/src/sage/symbolic/all.py @@ -1,6 +1,6 @@ from sage.symbolic.ring import SR from sage.symbolic.constants import (pi, e, NaN, golden_ratio, log2, euler_gamma, catalan, - khinchin, twinprime, mertens, glaisher) + khinchin, twinprime, mertens, glaisher) from sage.symbolic.expression import Expression, solve_diophantine, hold from sage.symbolic.callable import CallableSymbolicExpressionRing