coding standards in cpython

A.M. Kuchling amk at mira.erols.com
Sun Dec 10 16:37:41 CET 2000


On Tue, 28 Nov 2000 11:02:48 +0100, 
	Oivvio Polite <oivvio at cajal.mbb.ki.se> wrote:
>I guess that there's a c coding standard used in the implementation of
>cpython.

I'm not sure it's written down in a document anywhere, If you're using
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.

--amk



More information about the Python-list mailing list