Using re module better
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Wed Mar 5 17:07:21 EST 2008
On Wed, 05 Mar 2008 11:09:28 -0800, castironpi wrote:
> On another note, why do people X, Y, and Z, including me, all hate to
> write a= b(); if a: a.something()?
Is this a guessing game? You want us to guess why YOU hate to do
something? Okay, I'm game for guessing games...
You were traumatized as a child by a newline byte, and now you try to
write everything possible as a one-liner.
Am I close?
Speaking for myself, I *prefer* to separate the assignment from the
comparison. I dislike greatly the syntax "if (a=b()): a.something()".
--
Steven
More information about the Python-list
mailing list