Lilydjwg wrote:

> I noticed that actually the buffer objects in Python interface have
> a 'number' attribute, but it's neither documented nor seen via 'dir()'
> function in Python 3: Python 3 no longer uses the '__members__' special
> attribute. I did not know its existance until I looked into the source
> code. The attached patch fixes both the doc and the source code.

Thanks.

>      static PyObject *
> +BufferDir(PyObject *self, PyObject *args)
> +{
> +    return Py_BuildValue("[sssss]", "name", "number", \
> +         "append", "mark", "range");
> +}

The backslash isn't needed.  I added UNUSED to the arguments to avoid a
compiler warning.

-- 
How To Keep A Healthy Level Of Insanity:
14. Put mosquito netting around your work area. Play a tape of jungle
    sounds all day.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui