[python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

Kurt Munson kurt.munson at hbmncode.com
Tue Jul 17 18:36:46 CEST 2012


Point taken, while trying to avoid a discussion on the validity of case sensitivity. 8)

-Kurt


-----Original Message-----
From: python-win32-bounces+kurt.munson=hbmncode.com at python.org [mailto:python-win32-bounces+kurt.munson=hbmncode.com at python.org] On Behalf Of Tim Roberts
Sent: Tuesday, July 17, 2012 12:31 PM
To: Python-Win32 List
Subject: Re: [python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

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.

_______________________________________________
python-win32 mailing list
python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32

Confidentiality Notice: This email may contain confidential and/or privileged information. If you are not the intended recipient of this message, please delete it immediately and inform the sender that you have received this message in error.


More information about the python-win32 mailing list