Re: [python-win32] getting underlying OLE object identity for win32com objects

2014-10-01 Thread Dan Lenski
Tim Roberts probo.com> writes: > Right. They are two separate Python objects. > > print table > print same_table > print table is same_table > > "is" will obviously fail, because it is checking for two identical > Python objects. However, did you try the == operator? The source co

[python-win32] getting underlying OLE object identity for win32com objects

2014-10-01 Thread Dan Lenski
to confirm that two objects refer to the same underlying OLE object, I've resorted to parsing the `repr()` strings and comparing the hexadecimal addresses ("`obj at 0x...`"). Is there a better way to do this? Thanks, Dan Lenski ps- I also posted this on StackOverflow (http://stacko