[Tutor] sqlite3 module
Roel Schroeven
roel at roelschroeven.net
Tue Apr 18 04:02:03 EDT 2023
ThreeBlindQuarks via Tutor schreef op 18/04/2023 om 4:17:
> Dumb question. Is there a reason to assume the keys are not presented in the same order as the values?
Even in the older version of dictionaries, the order was arbitrary but
not random. Adding or deleting items had a good chance of changing the
order, but I'm pretty sure order was preserved in the absence of changes
to the dictionary. That can get tricky when using multithreading of
course, since then another thread can possibly cause changes.
--
"Cheer up," they said, "things could be worse." So I cheered up, and
sure enough, things got worse.
-- Paraphrased from James C. Hagerty
More information about the Tutor
mailing list