classification
Title: Python problem - == RESTART: Shell =====
Type: crash Stage:
Components: Interpreter Core Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eric.smith, shamon51
Priority: normal Keywords:

Created on 2017-11-14 09:02 by shamon51, last changed 2017-11-14 16:12 by shamon51.

Files
File name Uploaded Description Edit
KAKURU.py shamon51, 2017-11-14 09:02 PY file
KAKURU.py shamon51, 2017-11-14 16:12
Messages (6)
msg306190 - (view) Author: Shimon Malachi Cohen (shamon51) * Date: 2017-11-14 09:02
Dear Friends,
It seems that I manage to find a problem with Python ... version 3.6.3
Attached is a PY file designed to solve a puzzle: see function makeGame1

To find a solution run: doFind() 
>>> doFind()

----> counter: 11735841 rec depth: 2367
86792-719
72581-938
916-398--
--9378-97
3985-4859
27-2879--
--819-698
937-69782
812-78561
----> counter: 29203691
>>> 

It takes a few seconds to come up with a solution (deep recursive exhaustive search)
if you switch between lines 109 <==> 110 then it restart Python !?!?!?!?! (see below)

>>> doFind()

=============================== RESTART: Shell ===============================
>>> 

Dr. Shimon Cohen 
shamon51@gmail.com
msg306191 - (view) Author: Shimon Malachi Cohen (shamon51) * Date: 2017-11-14 09:04
lines 209 <==> 210
msg306201 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2017-11-14 12:38
Can you reproduce this with a much smaller example?
msg306202 - (view) Author: Shimon Malachi Cohen (shamon51) * Date: 2017-11-14 12:48
Not really...
Did you see the "restart" ?

On Nov 14, 2017 2:38 PM, "Eric V. Smith" <report@bugs.python.org> wrote:

>
> Eric V. Smith <eric@trueblade.com> added the comment:
>
> Can you reproduce this with a much smaller example?
>
> ----------
> nosy: +eric.smith
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue32022>
> _______________________________________
>
msg306214 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2017-11-14 14:31
That's too much code for me to run without analyzing it first. If I have time, I'll look at it.
msg306220 - (view) Author: Shimon Malachi Cohen (shamon51) * Date: 2017-11-14 16:12
Here is another simple example - Simple? the game board ==> is small 
see attached PY file
run ==> doFind()
History
Date User Action Args
2017-11-14 16:12:03shamon51setfiles: + KAKURU.py

messages: + msg306220
2017-11-14 14:31:53eric.smithsetmessages: + msg306214
2017-11-14 12:48:45shamon51setmessages: + msg306202
2017-11-14 12:38:37eric.smithsetnosy: + eric.smith
messages: + msg306201
2017-11-14 09:04:59shamon51setmessages: + msg306191
2017-11-14 09:02:41shamon51create