[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Inconsistent indentation in python code across code base

From: Branko Čibej <brane_at_e-reka.si>
Date: Mon, 21 Feb 2011 12:49:41 +0100

On 21.02.2011 11:20, Philip Martin wrote:
> Noorul Islam K M <noorul_at_collab.net> writes:
>
>> I think we have in consistent python indentation. I can see that we use
>> 2 space in test/ and 4 in bindings/ctypes-python. Is it not a good idea
>> to stick to common indentation? I can fix it. Fixing ctypes-python
>> will be easier because it has less number of lines.
>>
>> Any thoughts? Or is it already known to everyone and decided to live
>> with it.
> I've never looked at the ctypes-python code, it is essentially a
> separate code base from the test code. Do we ever cut-and-paste code
> from one to the other? Do developers spend a lot of time switching
> between them? If it really is separate then it's reasonable for it to
> have its own style, and AFAIK 4 spaces is the more common style in the
> Python world.

It is -- but our hacking guide (used to?) require 2-space indent for
Python, which is why the makefile generators and the test suite use that.

-- Brane
Received on 2011-02-21 12:50:23 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.