chore: make list copy explicit in `divide_polynomialcoeff` (#3706)

This commit is contained in:
kevaundray 2024-04-22 16:43:04 +01:00 committed by GitHub
parent 4fceca2b75
commit e51f7df77d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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