[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: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 21 Feb 2011 10:20:27 +0000

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.

-- 
Philip
Received on 2011-02-21 11:21:12 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.