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