Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Noumenon72
· 7y ago · 0 comments
"if m as re.match(p1, line)" is not very English-like.
Comments
[–]
clinta
7y ago
Because the variable goes after the as. if re.match(p1, line) as m:
[–]
carver
7y ago
`if re.match(p1, line) as m`, maybe?
[–]
collinmanderson
7y ago
Yes, this is what I would expect. Much like a with statement.