Re:What's Coming in Python 3.8
by Noumenon72 on Wednesday July 17, 2019 @11:04PM
(#20466327)
"if m as re.match(p1, line)" is not very English-like.
[ Parent
| on HN ]
Because the variable goes after the as.
if re.match(p1, line) as m:
`if re.match(p1, line) as m`, maybe?
Re:What's Coming in Python 3.8
by collinmanderson on Thursday July 18, 2019 @08:50AM
(#20469199)
Yes, this is what I would expect. Much like a with statement.