diff options
author | Georg Brandl <georg@python.org> | 2009-10-10 21:13:21 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-10-10 21:13:21 (GMT) |
commit | 38c34ef5de4c377f03c1d4860231ddc740974dc5 (patch) | |
tree | aee3d388b0fe560221c95eaf5a1849cfb19a0c47 /Demo/scripts | |
parent | 28ae0c34adb5b9e3b743db03254ee4d5339f2e82 (diff) | |
download | cpython-38c34ef5de4c377f03c1d4860231ddc740974dc5.zip cpython-38c34ef5de4c377f03c1d4860231ddc740974dc5.tar.gz cpython-38c34ef5de4c377f03c1d4860231ddc740974dc5.tar.bz2 |
Merged revisions 75315 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75315 | georg.brandl | 2009-10-10 23:10:05 +0200 (Sa, 10 Okt 2009) | 1 line
Remove unneeded "L" suffixes.
........
Diffstat (limited to 'Demo/scripts')
-rwxr-xr-x | Demo/scripts/pi.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Demo/scripts/pi.py b/Demo/scripts/pi.py index 19733cb..0740cd0 100755 --- a/Demo/scripts/pi.py +++ b/Demo/scripts/pi.py @@ -12,7 +12,7 @@ import sys def main(): k, a, b, a1, b1 = 2, 4, 1, 12, 4 - while 1: + while True: # Next approximation p, q, k = k*k, 2*k+1, k+1 a, b, a1, b1 = a1, b1, p*a+q*a1, p*b+q*b1 @@ -25,7 +25,6 @@ def main(): def output(d): # Use write() to avoid spaces between the digits - # Use str() to avoid the 'L' sys.stdout.write(str(d)) # Flush so the output is seen immediately sys.stdout.flush() |