On Sun, 07 Apr 2013 21:21:03 +0100, Arnaud Delobelle wrote:
> On 7 April 2013 19:02, Nick Gnedin wrote:
[...]
>> My question is - how do I access the doc string "mem-doc-string"
>> supplied in the PyGetSetDef structure? If I type
>>
>> print(obj.mem.__doc__)
>>
>> then the __doc__ string for the
On 7 April 2013 21:38, Nick Gnedin wrote:
>
> Arnaud,
>
> Thanks for the answer. I understand that I cannot access the docstring as an
> attribute of a getter, but what did you mean when you said "You need to do
> it from the class"? I am still confused - is there a way to get that
> docstring or
On 7 April 2013 19:02, Nick Gnedin wrote:
>
> Folks,
>
> I am writing an extension where I follow the guide on the web
> (http://docs.python.org/3.3/extending/newtypes.html#generic-attribute-management).
> I have an object declared,
>
> struct Object
> {
> PyObject_HEAD
> };
>
> and a member s
Folks,
I am writing an extension where I follow the guide on the web
(http://docs.python.org/3.3/extending/newtypes.html#generic-attribute-management).
I have an object declared,
struct Object
{
PyObject_HEAD
};
and a member set through tp_getset mechanism,
PyGetSetDef ObjectGetSet[] =