sage
Simplify `if-return-elif-return-else-return` logic
#41779
Open

Simplify `if-return-elif-return-else-return` logic #41779

gmou3 wants to merge 410 commits into sagemath:develop from gmou3:simplify_if_return_else_return
gmou3
orlitzky src/sage/graphs: remove block-level "needs sage.foo" tags
37f9e7e0
gmou3 Implement Oxley's visualization of R6, P6, P7, Q6
e6f716a7
aksharabhardwaj766-commits remove extra newline
a9ffdf51
orlitzky src/sage/symbolic: remove block-level "needs sage.foo" tags
5e351f88
orlitzky src/sage/graphs: remove a few more "needs sage.foo" tags by hand
fe26441f
enriqueartal speed up action
3846610a
enriqueartal correct error, take into account parity of the exponent of delta
8937dd74
MajoranaOedipus fix pow Integer with modulus 0 (Fixes #41692)
e6673c61
mantepse improve the docstring of weighted_vector_compositions
a3e8bf9f
dkwo q-Pochhammer: fix for negative n.
63230ca3
aksharabhardwaj766-commits Move references from combinat/rsk.py to master bibliography Part of #…
cff8f133
r-mb Merge branch 'sagemath:develop' into witt_vectors_upgraded
b52b2527
enriqueartal Merge branch 'sagemath:develop' into zvk2
517f04cd
enriqueartal Update src/sage/schemes/curves/zariski_vankampen.py
0b018dd8
enriqueartal Update src/sage/schemes/curves/zariski_vankampen.py
ff2efb90
enriqueartal Update zariski_vankampen.py
4081cf24
enriqueartal Update zariski_vankampen.py
09777b26
fchapoton Merge branch 'develop' into semidistributive_rowmotion
8d19eec0
fchapoton some pep8 details in two files in matrix/
2f6132c6
fchapoton final cleanup after 38126
8d9e42c3
fchapoton Merge branch 'develop' into deprec_38126_removal
a768f090
fchapoton Merge branch 'develop' into pep8_matrix
82b03d5c
tobiasdiez Add missing subdirectories for mpc, mpfi, and polybori in meson.build
7cd97903
r-mb Merge branch 'develop' into laurent_series_map_coefficients
bacce663
dcoudert immutable in smallgraphs.py part 13
e2678e6d
orlitzky src/sage/geometry/cone.py: emphasize *pointed* in its docstring
57fb84bd
orlitzky src/sage/geometry/cone.py: use a genexp for is_strictly_convex()
8e26cc94
dcoudert BalancedTree
49327d0e
aksharabhardwaj766-commits Update src/sage/combinat/rsk.py
55b07870
dcoudert FibonacciTree
613baa8d
dcoudert Caterpillar
db72a786
dcoudert RandomLobster
bccefcb3
dcoudert RandomTree
507d2207
dcoudert RandomTreePowerlaw
83cfd875
dcoudert nauty_gentreeg
970670c5
dcoudert add a few doctests
65fa1d9c
fchapoton Merge branch 'develop' into blossoming
a45ddf15
fchapoton Update all.py
1d6435b0
antonio-rojas Install conftest.py with meson
f4d39343
fchapoton some cython-lint details in algebras/ and crystals/
fc74d7a5
fchapoton various cython-lint details
a976f4c4
fchapoton fix indentation
a2ca8129
dcoudert TetrahedralGraph
3ab74e35
dcoudert HexahedralGraph
4bc13d42
dcoudert OctahedralGraph
2cd9a596
dcoudert IcosahedralGraph
a3490a4c
dcoudert DodecahedralGraph
6c9b922d
c8ef matroids: make flats not require an argument
6046ac34
dcoudert HermitianFormsGraph
c39d9ca1
dcoudert DoubleOddGraph
f7936003
dcoudert HalfCube
1a943068
dcoudert GrassmannGraph
95e631c5
dcoudert DoubleGrassmannGraph
0e2e4822
dcoudert graph_from_GQ_spread
a459b03b
orlitzky src/sage/rings: remove block-level "needs sage.foo" tags
8479ac9c
orlitzky src/sage/rings: remove a few more "needs sage.foo" tags by hand
b6cef8e9
orlitzky src/sage/rings: remove even MORE "needs sage.foo" tags by hand
6642778d
orlitzky src/sage/rings: further manual "needs sage.foo" clean-up
4d4675f0
fchapoton pep8 cleanup of quasisymmetric functions
2e8fd573
antonio-rojas Merge remote-tracking branch 'kiwifb/mpmath-1.4' into mpmath-1.4
691d91b2
orlitzky src/sage/rings/padics/factory.py: manually prune "needs sage.foo" tags
b531c3e0
antonio-rojas Revert mpmath upgrade
23e6179b
antonio-rojas Additional mpmath 1.4 fixes
99fb2b75
antonio-rojas Additional mpmath 1.4 fixes
695f3784
orlitzky src/sage/rings: manually prune more "needs sage.foo" tags
21be0735
antonio-rojas Make test pass with older mpmath
f75f163f
antonio-rojas Remove abs-tol from tests
12b41d04
antonio-rojas Drop mpmath feature tests
a1a9f84e
fchapoton remove a few "else:"
68d27b1b
aksharabhardwaj766-commits Move references from gelfand_tsetlin_patterns.py to master bibliograp…
c83457f1
orlitzky src/sage/rings: manually prune more "needs sage.foo" tags (again)
36ba81fd
antonio-rojas Make update-meson happy
458d0e09
antonio-rojas Add back abs tol for error.py
d7314e9d
fchapoton lots of various small pep8 fixes
f855f4e4
enriqueartal some corrections
7f13f67e
aksharabhardwaj766-commits Move references from 5 combinat files to master bibliography Part of …
d40e80d7
dcoudert immutable in degree_sequence.py
0ae10907
dcoudert _polar_graph
ed9e9ab1
dcoudert _orthogonal_polar_graph
e2d2d8c8
dcoudert SymplecticPolarGraph
867929c5
dcoudert OrthogonalPolarGraph
8ef61a94
dcoudert NonisotropicOrthogonalPolarGraph
0d623ccc
dcoudert UnitaryPolarGraph
54946e0b
dcoudert UnitaryDualPolarGraph
ed6a767d
PrafulVRaj Feature adding longest_path() method for DAGs
78129438
dcoudert SymplecticDualPolarGraph
5148263c
dcoudert AffineOrthogonalPolarGraph
1c43264a
dcoudert NonisotropicUnitaryPolarGraph
e53a40a4
dcoudert TaylorTwographDescendantSRG
7578e688
dcoudert TaylorTwographSRG
d8e38643
dcoudert HaemersGraph
e1529ed2
dcoudert CossidentePenttilaGraph
f9c18eb1
dcoudert Nowhere0WordsTwoWeightCodeGraph
9b616bd5
dcoudert OrthogonalDualPolarGraph
4b634005
dcoudert classical geometries part 3
50244777
PrafulVRaj Feature adding longest_path() method for DAGs
086f8e31
PrafulVRaj Feature adding longest_path() method for DAGs
f8f6cf5f
dcoudert RandomGNP
a9ab7dd9
dcoudert RandomBarabasiAlbert
0a64a42b
dcoudert RandomBipartite
edbf63a1
dcoudert RandomRegularBipartite
17092b62
dcoudert RandomBlockGraph
77ece052
dcoudert RandomBoundedToleranceGraph
6e2e9fe0
dcoudert RandomGNM
4deb27b1
dcoudert RandomNewmanWattsStrogatz
4faf9461
dcoudert RandomHolmeKim
238c3d7f
dcoudert RandomIntervalGraph
94356170
dcoudert RandomProperIntervalGraph
26ff92ed
dcoudert RandomChordalGraph
9ffc18e3
dcoudert RandomRegular
57ed0fac
dcoudert RandomShell
935b34b2
dcoudert RandomToleranceGraph
e6fd0977
dcoudert RandomTriangulation
56fe6c6d
dcoudert RandomBicubicPlanar
915caba4
dcoudert RandomUnitDiskGraph
ba13ca29
dcoudert RandomKTree
0b81497f
dcoudert RandomPartialKTree
a0c69a50
orlitzky src/sage/structure/sequence.py: skip fewer cases when pbori is missing
7615d587
dcoudert #41739: small fix
fd125415
MajoranaOedipus Don't try to call `_evalf_` when `hold=True`
afb9f91a
MajoranaOedipus Remove exclusion of factorial since from Python 3.10, math.factorial(…
0d9be2c1
gmou3 Use `Py_hash_t` for hashes
63b83efb
dcoudert #41734: suggested changes
415c79d8
dcoudert #41739: suggested changes
dfa19e6e
dcoudert #41739: fix vertex set in RandomPartialKTree
d14ef650
aksharabhardwaj766-commits Update src/sage/combinat/ribbon_tableau.py
ad3bf94a
aksharabhardwaj766-commits Update src/sage/combinat/cyclic_sieving_phenomenon.py
8176d26b
aksharabhardwaj766-commits Update [NS] reference with published journal info
665b7e1e
aksharabhardwaj766-commits Move local references from combinat/sf/macdonald.py to global referen…
b48f8e56
PrafulVRaj Feature adding longest_path() method for DAGs
2252ea0e
vincentmacri Bug fix for no caching Unique Hess model
9d6635d3
vincentmacri Explain tests
0e0575a0
vincentmacri Lint fix
710ca37c
tscrim Improvements to the construction of subalgebras.
cd9edf17
tscrim Making the inputs explicit.
3c43e032
tscrim Making the ideals also use the same algorithm.
f1271ae3
tscrim Adding extra doctests from reviewer.
77ddb5fd
tscrim Adding another test for the ideal property.
873c6bcd
orlitzky src/sage/probability: remove all "needs sage.foo" tags
bde07192
orlitzky src/sage/sandpiles: remove all "needs sage.foo" tags
655be1df
orlitzky conftest.py: giacpy-mkkeywords.py is gone
141c5bee
orlitzky src/sage_setup/autogen: move flint autogen to tools/flint-autogen
628be28c
orlitzky conftest.py: flint_autogen.py was moved out of the src tree
82ade5d1
orlitzky tools/README.md: document flint-autogen
f6f73ab4
orlitzky conftest.py: drop redundant parens (fix linter)
90966565
aksharabhardwaj766-commits Move references to master index for character, llt, subword_complex (…
808021fa
orlitzky pyproject.toml: no need to ignore src/sage_setup/autogen/flint
547093e6
orlitzky tools/flint-autogen: fix paths in docs and comments
cbbacd44
orlitzky src/sage/libs/flint/*.pxd: update flint-autogen comments
678299e4
striezel build/pkgs/plantri: update to 5.8
c860333e
cxzhong Fix command syntax for GCL FriCAS execution
0108a586
cxzhong Use safe methods for get and set in free modules
3ddb5c9a
fchapoton hardenon e doctest in lattice_posets.py
3b998b7e
fchapoton some care for ruff RET in combinat
402a8937
orlitzky conftest.py: remove rpy2 exception hack
79960add
fchapoton suggested fixes in crystals
cf2738e3
PrafulVRaj Feature adding longest_path() method for DAGs
b6609b14
PrafulVRaj Feature adding longest_path() method for DAGs
15bc1e2d
fchapoton even better code
afcb1551
PrafulVRaj Feature adding longest_path() method for DAGs
48f8656a
fchapoton another shorter piece of code
c1682423
mantepse simplify returns
9a081da6
aksharabhardwaj766-commits Move local references from parking_functions.py and perfect_matching.…
216f4245
Yossef-moftah-dev Fix pari SVP to use qfminim(m=1) for memory efficiency and clarify do…
9f6151ff
aksharabhardwaj766-commits Update src/sage/combinat/perfect_matching.py
caa5acbe
aksharabhardwaj766-commits Fix [MV] citation and remove [McD] per review
01d04714
github-actions github-actions added s: needs review
gmou3
gmou3 commented on 2026-03-09
gmou3
gmou3 commented on 2026-03-09
gmou3 gmou3 added t: refactoring
mantepse
gmou3
dcoudert
gmou3 gmou3 force pushed from dac23293 to 7e2b7645 8 days ago
github-actions
gmou3
aksharabhardwaj766-commits Fix duplicate line in perfect_matching.py after rebase
adbdff58
mantepse Merge branch 'sagemath:develop' into species/improve_docstring
0a1d7c0f
cxzhong
vincentmacri
vincentmacri
vincentmacri requested changes on 2026-03-09
ProfTR55 Fix generic graph LaTeX vertex styling
6763d160
gmou3
gmou3 gmou3 force pushed from e946fbcb to f94edec1 7 days ago
fchapoton avoid isinstance(., CommutativeRing)
6e4e6c7d
vincentmacri
antonio-rojas Drop obsolete test that fails with ipython 9.10
5ec0de82
ProfTR55 Fix rounding residues in CubeGraph positions
1f4168e6
ProfTR55 Adjust CubeGraph doctest selection
96a10262
rashadalsharpini trac #41671: simplify submodule element construction
85abe374
rashadalsharpini removing blank line
12593138
soehms update_database_knotinfo_2026.3.1 initial
abe79530
antonio-rojas Fix test failures with singular 4.4.1.p5
8bb570ea
d7c915eb
f6760ae1
89bc03e7
8dfea452
046419a6
c375f606
7087188d
b6735a58
1218784a
cdab798d
8bfb2047
2ec33e17
a3d212bb
230a0824
7cc8ef85
ba59de35
31d4b2ab
af700b42
9dc0cd59
4156bf97
8433bfe0
d4221ba7
856994ab
650c1dc1
3c1a3c95
a93252d1
0240f4eb
9a82293e
3bf5464d
70a5b925
f4fc1fac
5cce6c6c
7347bbd9
35a48d62
67104ab9
0f74bdd7
d54a8d51
f2a06e04
84bd6568
4a821d1b
1fea00d0
fc5f6f6f
857fbfa4
85900880
25a44732
5df653dd
f1f7b3a9
858eaa30
00958b68
49ddad91
3c5145e4
f5a1d7e7
a7499121
dfc8fc63
f1511c5c
e846ead0
e38688ae
ad622788
77e6cce5
7882bb40
76fcfe1c
9b7e10c2
22a149c7
0c11d23f
5b011490
dfa438cf
gh-41803: Update database_knotinfo to release 2026.3.1
93ef9238
ProfTR55 Add doctest for immutable BipartiteGraph from file input
37103bd6
ProfTR55 Convert to immutable only after full construction
9c138be6
ProfTR55 Handle immutable=True only for file-based construction
885c4622
ProfTR55 Fix immutable=True for file-based BipartiteGraph construction
f5026239
ProfTR55 Refactor alist loading to construct immutable backend directly
be8ba4a8
gmou3 Simplify `if-return-elif-return-else-return` logic
395b5fb6
gmou3 gmou3 force pushed from 83d4792c to 395b5fb6 1 day ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone