On Wed, Jun 8, 2011 at 8:12 AM, Nick Coghlan <ncogh...@gmail.com> wrote: > On Wed, Jun 8, 2011 at 7:35 AM, David Malcolm <dmalc...@redhat.com> wrote: >> After ~12 years of doing this, it comes naturally. I appreciate that >> this may come across as weird though :) > > I actually thought Brett's rationale in the checkin comment was > reasonable (if you get in the habit of putting constants on the left, > then the classic "'=' instead of '=='" typo is a compiler error > instead of a reassignment).
I really like consistency across the code base. I really don't like constant-on-the-left, and it's basically not used in the current codebase. Please be consistent and don't start using it. > Call it a +0 in favour of letting people put constants on the left in > C code if they prefer it that way, so long as any given if/elif chain > is consistent in the style it uses. Sorry, I give it a -1. (I'd like to be able to read the codebase still... :-) -- --Guido van Rossum (python.org/~guido) _______________________________________________ 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