Skip to content

Commit 5f412cf

Browse files
jamesjeroscarbenjamin
authored andcommitted
Sample from a list instead of a set for python 3.9 compatibility
1 parent 519443a commit 5f412cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sympy/polys/modulargcd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ def _modgcd_multivariate_p(f, g, p, degbound, contbound):
10091009
d = 0
10101010
evalpoints = []
10111011
heval = []
1012-
points = set(range(p))
1012+
points = list(range(p))
10131013

10141014
while points:
10151015
a = random.sample(points, 1)[0]
@@ -1605,7 +1605,7 @@ def _func_field_modgcd_p(f, g, minpoly, p):
16051605
evalpoints = []
16061606
heval = []
16071607
LMlist = []
1608-
points = set(range(p))
1608+
points = list(range(p))
16091609

16101610
while points:
16111611
a = random.sample(points, 1)[0]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy