Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-06 Thread Mark Hammond
On 4/03/2023 9:55 am, Clayton Macleod wrote: Sorry, forgot to hit reply all.  Been many years since I've used mailing lists, and I'm surprised anyone still does.  Heh.  Anyway... Perhaps this isn't very clear. I've found a case where the pywin32 COM library is causing data corruption I'm sor

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-06 Thread Clayton Macleod
Perhaps I’m misunderstanding how those things work then. If I print song.Name that isn’t simply printing from the script’s own data? That’s what I thought to be happening. It is instead calling upon the iTunes app to get song.Name at print time? -- Clayton Macleod If no one comes from the futur

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-06 Thread Mark Hammond
Your script is using itunes via COM - https://learn.microsoft.com/en-us/windows/win32/com. Many many apps expose APIs via COM, so almost all languages can use them in some way. When you reference song.Name, COM defines how Python asks itunes for a "name" property on a "songs" object. Mark On

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-06 Thread Clayton Macleod
Ah, ok. Thanks for the info. So it sounds like iTunes may be doing something weird then. And thanks for your time. Have a good one.--Clayton MacleodIf no one comes from the future to stop you from doing it, then how bad of a decision can it really be?On Mar 6, 2023, at 9:09 PM, Mark Hammond wrote: