On 21 September 2011 02:01, Russell Keith-Magee <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.