[pypy-svn] r41134 - pypy/dist/pypy/tool

xoraxax at codespeak.net xoraxax at codespeak.net
Fri Mar 23 00:19:31 CET 2007


Author: xoraxax
Date: Fri Mar 23 00:19:30 2007
New Revision: 41134

Modified:
   pypy/dist/pypy/tool/ansi_mandelbrot.py
Log:
Correctly use stderr instead of stdout in the fractal driver.

Modified: pypy/dist/pypy/tool/ansi_mandelbrot.py
==============================================================================
--- pypy/dist/pypy/tool/ansi_mandelbrot.py	(original)
+++ pypy/dist/pypy/tool/ansi_mandelbrot.py	Fri Mar 23 00:19:30 2007
@@ -117,7 +117,7 @@
             self.restart()
 
     def restart(self):
-        print
+        print >>sys.stderr
         self.init()
 
     def dot(self):
@@ -140,7 +140,7 @@
             #colour_range = None
             return self.restart()
         if x == self.width - 1:
-            print
+            print >>sys.stderr
         print_pixel(c, self.colour_range, 1)
 
 
@@ -152,7 +152,7 @@
     for x in xrange(15000):
         #sleep(random.random() / 3000)
         d.dot()
-        if 0 and random.random() < 0.001:
+        if 1 and random.random() < 0.001:
             print
             d.reset()
         #    print "R",



More information about the Pypy-commit mailing list