This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients mvngu, terry.reedy
Date 2008-08-02.00:18:40
SpamBayes Score 1.5196457e-06
Marked as misclassified No
Message-id <1217636323.15.0.7565520013.issue3463@psf.upfronthosting.co.za>
In-reply-to
Content
Summary: This patch makes a non-essential change to a curses demo.  It
also reverses several 2.x to 3.0 edits, turning it back to 2.x code.  So
the current version must be rejected.  Even if corrected, I would still
recommend closing.

To me, allowing any printable ascii char, even space, to represent live
cells adds nothing to the file's value as a curses demo.  Perhaps # as
an altnative, but even that would be a distraction from the main purpose.

The large bash-specific input chart is very nice.  I wish I has had
something like that when I worked with sh and csh.  But it has little to
do with this program in particular or Python as such and I think it
would be a distraction if added.

These diffs and others like them replace 3.0 code with 2.x code that in
two cases will not work in 3.0.

-            raise ValueError("Coordinates out of range %i,%i"% (y,x))
+            raise ValueError, "Coordinates out of range %i,%i"% (y,x)

-                live = (i,j) in self.state
+                live = self.state.has_key( (i,j) )

-    xpos, ypos = board.X//2, board.Y//2
+    xpos, ypos = board.X/2, board.Y/2
History
Date User Action Args
2008-08-02 00:18:43terry.reedysetrecipients: + terry.reedy, mvngu
2008-08-02 00:18:43terry.reedysetmessageid: <1217636323.15.0.7565520013.issue3463@psf.upfronthosting.co.za>
2008-08-02 00:18:41terry.reedylinkissue3463 messages
2008-08-02 00:18:40terry.reedycreate