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 steven.daprano
Recipients TobiasHT, steven.daprano
Date 2021-12-28.10:12:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640686359.79.0.819844090097.issue46188@roundup.psfhosted.org>
In-reply-to
Content
> I still can not figure out why the first two elements are inconsistent
from the rest of the dictionary, and why they appear in the first place.

Hi Tobias,

This is a bug tracker for reporting bugs in Python, not a help desk to ask for explanations. The behaviour you see is correct. Except for the last line, which is a copy-and-paste error on your part: the actual last line is

>>> dictionary
{0: None, None: None, 2: 2, 4: 4, 6: 6, 8: 8}

So there is no error here, everything is working as expected.

If you need help understanding why the code is correct, please take the discussion to the Python Discuss forum where you will be sure to get answers.
History
Date User Action Args
2021-12-28 10:12:39steven.dapranosetrecipients: + steven.daprano, TobiasHT
2021-12-28 10:12:39steven.dapranosetmessageid: <1640686359.79.0.819844090097.issue46188@roundup.psfhosted.org>
2021-12-28 10:12:39steven.dapranolinkissue46188 messages
2021-12-28 10:12:39steven.dapranocreate