This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [pushed/obv] DOC: Add space before the opening parenthesis in function descriptions
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Siva Chandra <sivachandra at google dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 9 Jun 2014 17:15:06 +0200
- Subject: Re: [pushed/obv] DOC: Add space before the opening parenthesis in function descriptions
- Authentication-results: sourceware.org; auth=none
- References: <CAGyQ6gzcNyfSftYdPL6065WChG5V7bFg=znYDH+0F4DhGrj79g at mail dot gmail dot com>
> 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