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

  David Abrahams, C++ library designer for hire

        C++ Booster (
          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: Unsubscribe:
> Your use of Yahoo! Groups is subject to

Boost list run by bdawes at, gregod at, cpdaniel at, john at