tag:blogger.com,1999:blog-8338260444057832583.post6461705110415989861..comments2023-04-16T18:01:56.769+02:00Comments on Griatch's Evennia musings: Such a small thing ...Griatchhttp://www.blogger.com/profile/01430093554910807910noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8338260444057832583.post-684323587317034562012-04-13T17:11:17.170+02:002012-04-13T17:11:17.170+02:00Update:
Thanks to ideas given elsewhere, Evennia ...Update: <br />Thanks to ideas given elsewhere, Evennia now supports updating any level of nested structure while saving it to the database. So the problematic example mentioned in the text<br /> <br /> myobj.db.test[3][2] = 8<br /><br />now works as expected. Whereas it's true that Python lists doesn't store back-references to the structures holding them, one *can* define a custom object that *does*. Once this deceptively simple idea was presented to me, it was easy to actually implement. :) Some things are obvious only when someone else tells you.Griatchhttps://www.blogger.com/profile/01430093554910807910noreply@blogger.com