[C++-sig] Re: Boost.Python: few thoughts and questions... [PATCH]

Roman Sulzhyk 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
> use
> > 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
> www.boost-consulting.com
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig

Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pyste.patch.txt
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030613/8f24c874/attachment.txt>

More information about the Cplusplus-sig mailing list