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.

classification
Title: Strange behavior with lists
Type: behavior Stage: resolved
Components: Versions: Python 3.10
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: daniel.frey, eric.smith
Priority: normal Keywords:

Created on 2021-12-20 13:28 by daniel.frey, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python_strange_behavior.png daniel.frey, 2021-12-20 13:28 picture of the strange behavior
Messages (2)
msg408960 - (view) Author: Daniel Frey (daniel.frey) Date: 2021-12-20 13:28
Hi

I found a strange behavior with lists. When I want to save the list {3,1,8}, it saves the 8 at the first entry. Only when I add the integers 7 and 9, the 8 is placed correctly. (See the attached picture)

Can anyone help me understand what is going on here?

Thanks in advance!
msg408961 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2021-12-20 13:30
You're using a set (with {}), not a list (with []).

I'd give you a working example, but since you posted a picture I can't copy, paste, and edit your example. In the future, please post text, not pictures.
History
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90296
2021-12-20 13:30:27eric.smithsetstatus: open -> closed

nosy: + eric.smith
messages: + msg408961

resolution: not a bug
stage: resolved
2021-12-20 13:28:02daniel.freycreate