summaryrefslogtreecommitdiffstats
path: root/Lib/zmod.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-01 19:35:13 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-01 19:35:13 (GMT)
commitbdfcfccbe591e15221f35add01132174c9b4e669 (patch)
tree7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/zmod.py
parent4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff)
downloadcpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2
New == syntax
Diffstat (limited to 'Lib/zmod.py')
-rw-r--r--Lib/zmod.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/zmod.py b/Lib/zmod.py
index d7f06db..4f03626 100644
--- a/Lib/zmod.py
+++ b/Lib/zmod.py
@@ -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