Skip to content

Commit

Permalink
Merge pull request sympy#19293 from oscarbenjamin/pr_sample_set
Browse files Browse the repository at this point in the history
Sample from a list instead of a set for python 3.9 compatibility
  • Loading branch information
oscarbenjamin authored May 11, 2020
2 parents 519443a + 5f412cf commit 3542540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sympy/polys/modulargcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ def _modgcd_multivariate_p(f, g, p, degbound, contbound):
d = 0
evalpoints = []
heval = []
points = set(range(p))
points = list(range(p))

while points:
a = random.sample(points, 1)[0]
Expand Down Expand Up @@ -1605,7 +1605,7 @@ def _func_field_modgcd_p(f, g, minpoly, p):
evalpoints = []
heval = []
LMlist = []
points = set(range(p))
points = list(range(p))

while points:
a = random.sample(points, 1)[0]
Expand Down

0 comments on commit 3542540

Please sign in to comment.