Re: [python-win32] Trouble with list iteration / comprehension for wrapped COM objects

2025-04-19 Thread dornech via python-win32
Hi Mark, thanks for spending time on my question. Sometimes when you are writing, you are already on the way to the solution ... Actually I haven't worked with an iterator object before an was unsure how to do it. But sometimes you must simply try. With an iterator for the Office Collection ob

Re: [python-win32] Trouble with list iteration / comprehension for wrapped COM objects

2025-04-18 Thread Mark Hammond via python-win32
I'm not sure what's going wrong here. Does fetching the list of workspaces as a simple list work? That would be a workaround, and feel free open an issue at https://github.com/mhammond/pywin32 since it shouldn't break that way. Cheers On 2025-04-18 8:33 p.m., dornech via python-win32 wrote: H

[python-win32] Trouble with list iteration / comprehension for wrapped COM objects

2025-04-18 Thread dornech via python-win32
Hi there, I am working on an EXCEL wrapper to "phytonize" access to EXCEL. I create a wrapper class for all objects classes derived from abasic wrapper class which mainly ensures that calls are snaked-case and pyhtonized calls work. I. e. workbokkobject.SaveAs, workbookobject.saveas and workb