New == syntax

This commit is contained in:
Guido van Rossum 1992-01-01 19:35:13 +00:00
parent 4d8e859e8f
commit bdfcfccbe5
73 changed files with 419 additions and 391 deletions

View file

@ -53,7 +53,7 @@ def make_all(mat):
return all
def make_elements(n, d):
if d = 0: return [poly.one(0, 0)]
if d == 0: return [poly.one(0, 0)]
sub = make_elements(n, d-1)
all = []
for a in sub:
@ -75,7 +75,7 @@ def checkfield(n, p):
inv1 = inv[:]
all1.sort()
inv1.sort()
if all1 = inv1: print 'BINGO!'
if all1 == inv1: print 'BINGO!'
else:
print 'Sorry:', n, p
print all