@ccc: Thanks for the comment. FYI, the identation in the first code block is only in this post and resulted from a copy and paste error.
Thanks for the detail on
with open() as
I'm an old hardware designer who wrote a lot of internal diagnostics code that was never for production and the depth of my knowledge of such details is scant. This helps me.
@mikael:
Unfortunately, I think you are correct about iCloud, and it is very disappointing. It is interesting that I have had good luck with some apps that use iCloud--like Drafts, for example--that seem much more reliable than Apple's efforts--like Notes, for example. I am going to play with storing my data in Drafts to see it that works more reliably.
Also, as a workaround when I notice a missed update failure, I found this on the forum:
https://forum.omz-software.com/topic/6091/icloud-syncing-and-pythonista/8
The last comment suggests a technique to force an iCloud update in Pythonista and I have had a bit of luck with that.
Maybe this is a question for a separate thread, but what is the effect of running a gui pythonista app multiple times from a shortcut without closing the Pythonista gui app? If I do this (my gui is less that full screen size), then the Pythonista gui app windows just stack up. Doesn't seem like a good thing, but if I handle the opening/closing of files properly, is this a problem? Of course, I wouldn't want a few hundred of them stacked up--but I would notice eventually and close them :).