On 21 September 2011 02:01, Russell Keith-Magee <russ...@keith-magee.com> wrote:
>
> For what it's worth, I also think the "convention" is bass ackwards...
> you write "if variable == value", but you write "assertEqual(value,
> variable)"? Where's the consistency in that?
>

My guess is that the choice is somehow connected to Yoda conditions,
where you actually write:

   if(5 == x) { ... }

to avoid assigning 5 to x by mistake. If you write all your conditions
like that, then the assert order makes sense.

But Python thankfully doesn't need any of that Jedi stuff.

-- 
Łukasz Rekucki

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to