Le mardi 04 mai 2010 01:24:37, Antoine Pitrou a écrit :
> Would it be finally time to standardize all C files on a 4-spaces
> indentation rule?

Indentation is painful on some files mixing tabs and spaces (sometimes in the 
same function!).

> I understand the "svn annotate" argument, but we edit code far more often
> than we annotate it. Also, it seems "svn ann -x -w" would ignore
> whitespace changes.

I use svn blame to find the commit which insered a line of code. When I get 
the commit number, I always read the commit to ensure that the patch really 
insered the line, and it's not a refactoring patch. Refactoring can be about 
the indentation, but there are a lot of other minor changes: op->ob_size => 
Py_SIZE(op), (a) => a, { with a new line => { without newline, ...

-- 
Victor Stinner
http://www.haypocalc.com/
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to