Skip to content

Commit

Permalink
Adapt length check for database update
Browse files Browse the repository at this point in the history
Amend: Added comment explaining the relaxed length test
  • Loading branch information
S17A05 committed May 7, 2024
1 parent 744939e commit 2bc3197
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/sage/databases/conway.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,16 @@ def __len__(self):
"""
Return the number of polynomials in this database.
TESTS::
TESTS:
The database currently contains `35357` polynomials, but due to
:issue:`35357` it will be extended by Conway polynomials of
degrees `1`, `2` and `3` for primes between `65537` and `110000`,
thus leading to a new total of `47090` entries::
sage: c = ConwayPolynomials()
sage: len(c)
35357
sage: len(c) in [35357, 47090]
True
"""
try:
return self._len
Expand Down

0 comments on commit 2bc3197

Please sign in to comment.