On Tue, Nov 27, 2018 at 08:26:04PM -0500, Avi Gross wrote:
> Ivo,
You've replied to the wrong mailing list. Ivo wrote to Python-List, not
Tutor.
But now that you've raised the issue...
[Ivo asked]
>Why:
> if (match := pattern.search(data)) is not None:
># Do someth
Ivo,
One thing you could have done is explore with simpler code to see if you can
deduce what is happening.
If you opened your Python interpreter and tried to see what happens with a
simplified variant like this, what do you get?
if (match = 5) is not None: pass
That might answer your question