commit | bdfcfccbe591e15221f35add01132174c9b4e669 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jan 01 19:35:13 1992 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jan 01 19:35:13 1992 +0000 |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 [diff] [blame] |
New == syntax
diff --git a/Demo/scripts/pi.py b/Demo/scripts/pi.py index 5e19db6..74a66a7 100755 --- a/Demo/scripts/pi.py +++ b/Demo/scripts/pi.py
@@ -19,7 +19,7 @@ # Print common digits d, d1 = a/b, a1/b1 #print a, b, a1, b1 - while d = d1: + while d == d1: # Use write() to avoid spaces between the digits sys.stdout.write(`int(d)`) # Flush so the output is seen immediately