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 Macleod
If 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 <mhamm...@skippinet.com.au> wrote:


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 7/03/2023 4:03 pm, Clayton Macleod wrote:
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 future to stop you from doing it, then how bad of a decision can it really be?

On Mar 6, 2023, at 8:40 PM, Mark Hammond <mhamm...@skippinet.com.au> wrote:

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 sorry, but I don't think you did. Any bugs here are going to be inside the COM objects exposed by itunes - which doesn't sound particularly surprising given COM doesn't even exist on the platforms they own.

It would be like saying that if you can provoke Word to create a corrupt document via COM that it would be a pywin32 bug - it would not - and stranger things have happened with many different COM interfaces over the years.

Mark.


_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to