[C++-sig] Re: property and documentation
David Abrahams
dave at boost-consulting.com
Tue Aug 5 20:11:50 CEST 2003
"Roman Yakovenko" <romany at actimize.com> writes:
>> Well, it isn't fair to simply copy the effects of add_property; they
>> don't have the same semantics.
> 1. There is no difference in function definitions except their
>> names.
No, one calls base::add_static_property and the other calls
base::add_property.
> 2. The difference is
>
> Effects: Creates a new Python property class instance, passing object(fget) (and object(fset) in the second form) to its constructor, then adds that property to the Python class with the given attribute name.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> ^^^^^
I'm not sure what you're trying to highlight here, but it doesn't
make sense on my screen.
> If you meant smth different, then I don't understand.
See enclosed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030805/7ecc45fc/attachment.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030805/7ecc45fc/attachment-0001.html>
-------------- next part --------------
> Also I send you 2 files. I believe that I checked all cases.
Thanks; I'll add them.
> Also I believe that you will find some things that I will have to
> fix. (Life is not easy as I'd like to be.)
We'll see.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list