[C++-sig] Re: property and documentation

David Abrahams dave at boost-consulting.com
Tue Aug 5 15:05:35 CEST 2003


"Roman Yakovenko" <romany at actimize.com> writes:

> Yes. class.html is edited file. class_orig.html is file from cvs.

Well, it isn't fair to simply copy the effects of add_property; they
don't have the same semantics.

> If you need also tests in C++ and in Python I can write it.

Yes, please.  A patch to one of the existing tests would probably be
best.

> Thanks for the answer. 
>
> Roman
>
>> -----Original Message-----
>> From: David Abrahams [mailto:dave at boost-consulting.com]
>> Sent: Tuesday, August 05, 2003 1:02 PM
>> To: c++-sig at python.org
>> Subject: [C++-sig] Re: property and documentation
>> 
>> 
>> "Roman Yakovenko" <romany at actimize.com> writes:
>> 
>> > 	Hi. 
>> > 1. add_static_property - function of class_ is not 
>> referenced in documentation. 
>> >    Nevertheless it works pretty good.
>> 
>> Would you like to suggest a documentation patch?
>> 
>> > 2. How can I specify return value policy for properties ?
>> 
>> Just use make_function explicitly on the get function and your call
>> policy and pass the result on to add_property.
>> 
>> -- 
>> Dave Abrahams
>> Boost Consulting
>> www.boost-consulting.com
>> 
>> 
>> _______________________________________________
>> C++-sig mailing list
>> C++-sig at python.org
>> http://mail.python.org/mailman/listinfo/c++-sig
>> 
>
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list