[C++-sig] Re: Boost.Python: few thoughts and questions... [PATCH]
roman_sulzhyk at yahoo.com
Sat Jun 14 00:32:19 CEST 2003
Anyway, here's a patch with some rather raw hacks so far, if this
functionality is useful to Nicodemus I can definitely clean this up.
The patch is against stock 1.3.0 pyste.
Basically I've added 'unvirtual' functionality, to treat virtual
functions as if they were regular, added policy honouring to virtual
member functions and extended the member function generation to include
all of the functions publicly inherited from base classes.
BTW, I also have a few questions, maybe we can have a discussion:
1) Is it worthwhile to add a 'default reference policy' to pyste, i.e.
a default conversion (like copy_const_reference) which will be used in
case one isn't specified explicitely. This will be useful for
situations where one has an API which returns a bunch of const
std::string &, to avoid having to specify them function by function.
2) How about adding 'converter' functionality to pyste, i.e. ability to
register default converters using to_python_converter<> ?
--- David Abrahams <dave at boost-consulting.com> wrote:
> Roman Sulzhyk <roman_sulzhyk at yahoo.com> writes:
> > I'm planning to fix the problems I've mentioned since I'd like to
> > this functionality, is it worthwhile submitting a patch?
> Sure, though I'm not sure where Nicodemus is at the moment; I haven't
> heard anything from him recently.
> Dave Abrahams
> Boost Consulting
> C++-sig mailing list
> C++-sig at python.org
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Cplusplus-sig