From e51f7df77d776a79832dc937497cf84551f19286 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Mon, 22 Apr 2024 16:43:04 +0100 Subject: [PATCH] chore: make list copy explicit in `divide_polynomialcoeff` (#3706) --- specs/_features/eip7594/polynomial-commitments-sampling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/_features/eip7594/polynomial-commitments-sampling.md b/specs/_features/eip7594/polynomial-commitments-sampling.md index c56b1de01..1353bafa3 100644 --- a/specs/_features/eip7594/polynomial-commitments-sampling.md +++ b/specs/_features/eip7594/polynomial-commitments-sampling.md @@ -236,7 +236,7 @@ def divide_polynomialcoeff(a: PolynomialCoeff, b: PolynomialCoeff) -> Polynomial """ Long polynomial division for two coefficient form polynomials ``a`` and ``b`` """ - a = [x for x in a] + a = a.copy() # Make a copy since `a` is passed by reference o = [] apos = len(a) - 1 bpos = len(b) - 1