Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42428
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-03-31 15:27 -0700 |
| References | (6 earlier) <17da5afc-7a9b-40ea-a544-6012dfeef3ce@googlegroups.com> <mailman.3970.1364595086.2939.python-list@python.org> <95807259-513b-430a-80d1-2db853426159@googlegroups.com> <mailman.4007.1364685357.2939.python-list@python.org> <mailman.4036.1364768032.2939.python-list@python.org> |
| Subject | Re: Sudoku |
| From | Eric Parry <joan4eric@gmail.com> |
| Message-ID | <mailman.4037.1364768873.2939.python-list@python.org> (permalink) |
On Monday, April 1, 2013 8:33:47 AM UTC+10:30, Eric Parry wrote: > On Sunday, March 31, 2013 9:45:36 AM UTC+10:30, Dave Angel wrote: > > > On 03/30/2013 06:06 PM, Eric Parry wrote: > > > > > > > On Saturday, March 30, 2013 8:41:08 AM UTC+10:30, Dave Angel wrote: > > > > > > >> On 03/29/2013 05:47 PM, Eric Parry wrote: > > > > > > >> > > > > > > >>> <SNIP> > > > > > > >> > > > > > > >> Sometimes a bug in such a function will cause it to run indefinitely, > > > > > > >> > > > > > > >> and/or to overflow the stack. I don't see such a bug in this function. > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> -- > > > > > > >> > > > > > > >> DaveA > > > > > > > > > > > > > > The exit() did not work. > > > > > > > > > > > > Would you like to elaborate? exit() is supposed to take an int > > > > > > parameter, but the author apparently didn't notice that. So perhaps you > > > > > > got an exception of some sort. Change it to exit() or exit(0) and it > > > > > > might solve the problem, depending on what the problem was. > > > > > > > > > > > > > I replaced it with return = 0, and that does work. > > > > > > > > > > > > No it doesn't. return = 0 is a syntax error in both Python 2.x and 3.x > > > > > > > > > > > > But if you changed it to a valid return statement, then that's why it > > > > > > doesn't stop on the first solution. > > > > > > > > > > > > > > > > > > -- > > > > > > DaveA > > > > I think in the original it was exit(a). That did not work either. > > I'll try the others. > > Eric. I tried all those things. The program keeps running after the solution in every case. Never mind. It won't do that in VBA when I finish it. Eric.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-26 22:44 -0700
Re: Sudoku Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2013-03-27 08:58 +0100
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-27 20:00 -0700
Re: Sudoku Dave Angel <davea@davea.name> - 2013-03-28 00:36 -0400
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-28 15:11 -0700
Re: Sudoku Dave Angel <davea@davea.name> - 2013-03-28 19:28 -0400
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-28 22:07 -0700
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-28 22:07 -0700
Re: Sudoku Chris Angelico <rosuav@gmail.com> - 2013-03-29 09:45 +1100
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-29 14:47 -0700
Re: Sudoku Dave Angel <davea@davea.name> - 2013-03-29 18:11 -0400
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-30 15:06 -0700
Re: Sudoku Dave Angel <davea@davea.name> - 2013-03-30 19:15 -0400
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-31 15:03 -0700
Re: Sudoku Dave Angel <davea@davea.name> - 2013-03-31 18:34 -0400
Re: Sudoku Arnaud Delobelle <arnodel@gmail.com> - 2013-03-31 23:59 +0100
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-31 15:03 -0700
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-31 15:27 -0700
Re: Sudoku Chris Angelico <rosuav@gmail.com> - 2013-04-01 09:35 +1100
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-31 20:58 -0700
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-31 15:27 -0700
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-30 15:06 -0700
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-29 14:47 -0700
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-28 15:11 -0700
Re: Sudoku Damien Wyart <damien.wyart@free.fr> - 2013-03-27 09:49 +0100
Re: Sudoku Dave Angel <davea@davea.name> - 2013-03-27 05:38 -0400
Re: Sudoku Eric Parry <joan4eric@gmail.com> - 2013-03-27 19:49 -0700
csiph-web