This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [pushed/obv] DOC: Add space before the opening parenthesis in function descriptions


> 2014-06-09  Siva Chandra Reddy  <sivachandra@google.com>
> 
>         * python.texi (Xmethod API): Add space before the opening
>         parenthesis in function descriptions.

> diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
> index 2f1b71f..4688783 100644
> --- a/gdb/doc/python.texi
> +++ b/gdb/doc/python.texi
> @@ -2270,7 +2270,7 @@ disabled.
>  The class @code{XMethod} is a convenience class with same
>  attributes as above along with the following constructor:
>  
> -@defun XMethod.__init__(self, name)
> +@defun XMethod.__init__ (self, name)

Should we NOT put a space there? The recommendation for Python
code is to not have spaces before parens (see PEP8).

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]