Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-11-07 05:33:17


Hi Phil,

Did I ever get back to you about this? If not, sorry!
No, AFAIK there is currently no way to do this using class.def.
Wrapped Function objects Boost.Python do not have a place to store a
docstring, nor do they have a __getattr__ function to retrieve the __doc__
attribute. It's a good idea, though!
I guess in newer versions of Python, functions can have all kinds of useful
attributes...

===================================================
  David Abrahams, C++ library designer for hire
 resume: http://users.rcn.com/abrahams/resume.html

        C++ Booster (http://www.boost.org)
          email: david.abrahams_at_[hidden]
===================================================

----- Original Message -----
From: "Phil Austin" <paustin_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, November 01, 2001 4:50 PM
Subject: [boost] Python: member function docstrings?

>
> Question: Method table entries in C extensions types have room for
> member function docstrings via:
>
> static PyMethodDef PyNetCDFFileObject_methods[] = {
> {"sync", (PyCFunction)PyNetCDFFileObject_sync, 1, sync_doc},
> ....
>
> Is there a way to do this using class.def?
>
> Thanks, Phil
>
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk