[python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously
Tim Roberts
timr at probo.com
Tue Jul 17 18:31:04 CEST 2012
Kurt Munson wrote:
> Thanks for the suggestion - deleting the \win32com\gen_py .py and .pyc files solved the problem!
No, not really. What you did was HIDE the problem. The PROBLEM is that
you are simply using the wrong name for that property. The property
name is "Visible" with a capital V, and it always has been. You have
been relying on the case-insensitivity that dynamic dispatch provides.
In my opinion, that's a dangerous practice, and your experience here
shows why.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list