[python-win32] How pywin tells properties from function in COM?
Tim Roberts
timr at probo.com
Tue Feb 17 23:11:30 CET 2015
Łukasz Jakubowski wrote:
> There is this entry in dynamic.py/_FlagAsMethod:
>
> "Some objects do not correctly differentiate methods and properties,
> leading to problems when calling these methods."
>
> My question is: what actually makes a difference?
It is strictly a software convention. A property has methods that start
with get_ and/or put_, with one parameter. So, for a property called
"Size", you would have methods called get_Size and put_Size, each taking
one parameter.
As you can see, it's a bit squishy. There's no better way to do that in
C++.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list