Page 1 of 1

Ordered Dicts in Python 3 mode?

Posted: Fri Dec 31, 2021 3:43 pm
by Jackkel Dragon
I get the feeling this is something that won't show up until Ren'Py 8.0 or later, but is there a way to get Python 3's ordered behavior for dictionaries in Ren'Py yet? I tried using this header line in a related .rpy file:

Code: Select all

rpy python 3
However, getting the dict.keys() still gave me a list that wasn't in the order that entries were placed in the dict. So, is there a way to get ordered dictionary entries yet, or is that not until deeper into Ren'Py 8.x?

Re: Ordered Dicts in Python 3 mode?

Posted: Fri Dec 31, 2021 8:46 pm
by PyTom
No, that will require the real Python 3.