New submission from Alan <alan....@sjtu.edu.cn>:
Dear PythonDev, Thank you for your tremendous work in building a simpler programming language for all. As an avid user of lists, I am upset that my list cannot preserve its referential integrity in the attached pythonissue.txt file. In the following, (EXPECTED) includes my expected checkvisit data values, and the following two (OUTPUT)s include the actual checkvisit data structures when called. Perhaps this is not an issue in Python 3.8., but this is a matter in Python 3.6. Sincerely, Alan Jerry Pan, CPA alan....@sjtu.edu.cn alt. alan....@alumni.iu.edu (EXPECTED) Checkvisit (for every isGoal iteration): [[5, 3, 4, 2, 1, 0]] [[5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0]] [[5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0]] [[5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0]] [[5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0]] [[5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0]] [[5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0], [5, 3, 4, 2, 1, 0]] (OUTPUT) Checkvisit print result inside def(visitedPath): [] [] [] [] [] [[5]] [[5, 3]] [[5, 3, 4]] [[5, 3, 4, 2]] [[5, 3, 4, 2, 1]] [[5], [5]] [[5, 3], [5, 3]] [[5, 3, 4], [5, 3, 4]] [[5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2, 1], [5, 3, 4, 2, 1]] [[5], [5], [5]] [[5, 3], [5, 3], [5, 3]] [[5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1]] [[5], [5], [5], [5]] [[5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1]] [[5], [5], [5], [5], [5]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1]] [[5], [5], [5], [5], [5], [5]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1]] (OUTPUT)Checkvisit print result in while 0 loop [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [[5]] [[5]] [[5]] [[5]] [[5]] [[5, 3]] [[5, 3]] [[5, 3]] [[5, 3]] [[5, 3]] [[5, 3]] [[5, 3, 4]] [[5, 3, 4]] [[5, 3, 4]] [[5, 3, 4]] [[5, 3, 4, 2]] [[5, 3, 4, 2]] [[5, 3, 4, 2, 1]] [[5], [5]] [[5], [5]] [[5], [5]] [[5], [5]] [[5], [5]] [[5, 3], [5, 3]] [[5, 3], [5, 3]] [[5, 3], [5, 3]] [[5, 3], [5, 3]] [[5, 3], [5, 3]] [[5, 3], [5, 3]] [[5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4]] [[5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2, 1], [5, 3, 4, 2, 1]] [[5], [5], [5]] [[5], [5], [5]] [[5], [5], [5]] [[5], [5], [5]] [[5], [5], [5]] [[5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3]] [[5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1]] [[5], [5], [5], [5]] [[5], [5], [5], [5]] [[5], [5], [5], [5]] [[5], [5], [5], [5]] [[5], [5], [5], [5]] [[5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1]] [[5], [5], [5], [5], [5]] [[5], [5], [5], [5], [5]] [[5], [5], [5], [5], [5]] [[5], [5], [5], [5], [5]] [[5], [5], [5], [5], [5]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1]] [[5], [5], [5], [5], [5], [5]] [[5], [5], [5], [5], [5], [5]] [[5], [5], [5], [5], [5], [5]] [[5], [5], [5], [5], [5], [5]] [[5], [5], [5], [5], [5], [5]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3], [5, 3], [5, 3], [5, 3], [5, 3], [5, 3]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4], [5, 3, 4]] [[5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2], [5, 3, 4, 2]] [[5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1], [5, 3, 4, 2, 1]] ---------- components: IO, Interpreter Core files: pythonissue.txt messages: 327746 nosy: alan.pan priority: normal severity: normal status: open title: variable type list [] referential integrity data loss type: behavior versions: Python 3.6 Added file: https://bugs.python.org/file47870/pythonissue.txt _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34991> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com