coding standards in cpython
Alex Martelli
aleaxit at yahoo.com
Sun Dec 10 12:43:48 EST 2000
"A.M. Kuchling" <amk at mira.erols.com> wrote in message
news:slrn9379is.h4.amk at 207-172-146-162.s162.tnt3.ann.va.dialup.rcn.com...
[snip]
> cc-mode in Emacs or XEmacs, c-set-style "python" will use the right
> style -- 8-space indents, and blocks in this style:
>
> if (tstate == NULL) {
> PyInterpreterState_Delete(interp);
> return NULL;
> }
>
> I forget what that style of brace placement is called.
K&R? Or, almost -- that's what they used except for
the space between the 'if' and the open-parenthesis,
I think.
Alex
More information about the Python-list
mailing list