Re:“I'm basically giving myself a permanent vacation from be...
by thomasahle on Thursday July 12, 2018 @03:02PM
(#17517599)
> You can require additional brackets around assignment if you use the returning value (or otherwise it's syntax error). They did that with the new one anyway.
They only did it if the := is at the root level. The following is completely legal:
if match := re.search(pat, text):
`print("Found:", match.group(0))
They only did it if the := is at the root level. The following is completely legal:
or