Let me say firstly I’m not suggesting to rewrite all the CPython
code…
I see that in CPython
code there’s a prevalent style:
1: type *var
vs type* var
2: function\n{
vs function {
3: type var; [later] var = 0;
vs type var = 0;
4: if (something) single_line;
vs if (something) {single_line};
5: goto
s
Apart the first, the other conventions seems to me a little “unpythonic”. Well, yes, you can say… it’s C
! But I think also the CPython
code could follow a PEP 8-like style.
About goto
, sometime is inevitable, but I found that many times can be removed without speed problems.