Is there a style guide for writing C extensions, or does anybody want to write one?

Actually, I’m writing some C code to go into Cpython as an experiment. I want to have it look like (most) any other C code. This raises questions about indentation, whitespace, name conventions, etc.

I really like and appreciate PEP 8 for Python code. I’d like to see something similar for C code.

Thanks.

That would be PEP 7:

1 Like

Many thanks.