HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by Noumenon72 | Hacker News Reader
Parent
Full thread
Noumenon72
·
"if m as re.match(p1, line)" is not very English-like.
View on HN
clinta
·
Because the variable goes after the as. if re.match(p1, line) as m:
carver
·
`if re.match(p1, line) as m`, maybe?
collinmanderson
·
Yes, this is what I would expect. Much like a with statement.
Reply on news.ycombinator.com