Dang. Even though this is obsolete code, somebody found a bug, and I

fix it.  Oh well.
This commit is contained in:
Guido van Rossum 1999-02-22 15:19:47 +00:00
parent 9226d8e8a8
commit 11a8d0b684

View file

@ -7,7 +7,7 @@
def normalize(p): # Strip unnecessary zero coefficients
n = len(p)
while p:
while n:
if p[n-1]: return p[:n]
n = n-1
return []