Differences between revisions 6 and 7
Revision 6 as of 2008-06-24 10:38:09
Size: 899
Comment:
Revision 7 as of 2009-09-20 23:47:15
Size: 899
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Python Indentation in Thrift

I think we should use two spaces

  1. dreiss
  2. MichaelGreene - PEP 8 is pretty flexible on even numbers of spaces. Even Guido uses 2 when he needs to conform to Google's style guide.

  3. BillFumerola - PEP 8 even says that 'consistency within a project is more important'. unless the php code must conform to the PECL specification, the C/C++ code to K&R style, etc.. in my opinion, project consistency is more desirable. if Apache has its own style specifications, that's another story and another vote.

  4. MarkSlee - Ditto.

  5. Upayavira - tabs are evil, four spaces spreads the code out too far. two spaces is just right. Not sure if I really have a say though!

I think we should use four spaces

  1. AlexanderShigin - python doesn't use bracers and sometimes it's confusing to determine where a code block ends if two spaces are used.

PythonIndent (last edited 2009-09-20 23:47:15 by localhost)