Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"if m as re.match(p1, line)" is not very English-like.


Because the variable goes after the as. if re.match(p1, line) as m:


`if re.match(p1, line) as m`, maybe?


Yes, this is what I would expect. Much like a with statement.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: