On Tue, Apr 24, 2018 at 11:51 AM, Ethan Furman <[email protected]> wrote:
>> When I compare to variables from outer scopes they *usually* are on
>> the *right* side of '=='.
>
>
> You mean something like
>
> if 2 == x:
>
> ? I never write code like that, and I haven't seen it, either.
Hm. I mean this:
const = 'something'
def foo(arg):
if arg == const:
do something
Note that "const" is on the right side of "==".
Would you write this as
def foo(arg):
if const == arg:
? ;)
Yury
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com