Ordered Dicts in Python 3 mode?
Posted: Fri Dec 31, 2021 3:43 pm
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:
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?
Code: Select all
rpy python 3