On 24Apr2018 08:51, Ethan Furman <[email protected]> wrote:
Just to this, I also never write code like that but I've certainly seen it advocated. I think the rationale was that it places the comparison value foremost in one's mind, versus the name being tested. I'm not persuaded, but it is another subjective situation.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.
Cheers, Cameron Simpson <[email protected]> _______________________________________________ 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