2008/6/20 Dan Price <[EMAIL PROTECTED]>:
> On Thu 19 Jun 2008 at 04:36PM, Danek Duvall wrote:
>> On Thu, Jun 19, 2008 at 04:30:47PM -0700, Bart Smaalders wrote:
>>
>> > To start the formating discussions,  I'd really like to avoid all the
>> > escapes or '\' characters needed to handle our code and 8 space indents;
>> > have we considered using 4?
>>
>> Four-space indents aren't going to help in all cases.  I'd much rather that
>> eight-space indents be used, except in special, limited circumstances where
>> no other options really work very well (which likely means that the first
>> indent or two will be eight spaces).
>
> I would note that python code I've seen from the SCM transition work has
> been 4 spaces.  As is much other python out in the world, due I guess to
> PEP8.
>
> My brain will probably never recover if we ditch the beloved
> 8-space indentation... and yet it probably makes sense to consider
> establishing a recommendation for opensolaris projects.  4-spaces is
> probably the way to go :p

I'd personally rather just follow PEP8 and be done with it. Someone
has already done the hard work of figuring out a decent style, and
it's well accepted by the Python community.

Ultimately, the style doesn't matter to me as long as it isn't GNU
brace style and it is easy to follow :-)

> For the code which is mixing tabs and spaces, should we just invoke
> python with '-tt'?  PEP8 indicates that will cause mixed tabs and
> spaces to be errors.

We can, but as I mentioned earlier, pylint will warn about these
unless you disable the related msg.

-- 
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to