← Back to team overview

launchpad-dev team mailing list archive

Re: New coding standard for formatting imports

 

On 19 August 2010 10:16, Stuart Bishop <stuart.bishop@xxxxxxxxxxxxx> wrote:
>> - Multiple objects in one import statement are each placed on a line by
>> itself, in list style (the core of this change). Objects are sorted
>> alphabetically using Python's "sorted" function which sorts Capital letters
>> *first*. I know this is a change to the previous style but who are we to argue
>> with Python? ;)
>
> Python does both - it all depends if you are running in C locale and
> doing byte wise or an English locale and locale aware sorting. As the
> end result is supposed to be read and used by humans, I'd go for
> locale aware and make the sorting case insensitive.

+1 for case-insensitive sorting. Case-sensitive sorting will just
annoy people in the long run.

-- 
Graham Binns | PGP Key: EC66FA7D
http://launchpad.net/~gmb



Follow ups

References