-
New functions:
is_prime
andnth_prime
were added (thanks to JamesParrott and rhettinger)loops
was added (thanks to rhettinger)
-
Changes to existing functions:
factor
was optimized to handle larger inputs and use less memory (thanks to rhettinger)spy
was optimized to enable nested calls (thanks to rhettinger)polynomial_from_roots
was made non-recursive and able to handle larger numbers of roots (thanks to pochmann3 and rhettinger)is_sorted
now only relies on less than comparisons (thanks to rhettinger)- The docstring for
outer_product
was improved (thanks to rhettinger) - The type annotations for
sample
were improved (thanks to rhettinger)
-
Other changes:
- Python 3.13 is officially supported. Python 3.8 is no longer officially supported. (thanks to hugovk, JamesParrott, and stankudrow)
mypy
checks were fixed (thanks to JamesParrott)