Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Noumenon72
on July 18, 2019
|
parent
|
context
|
favorite
| on:
What's Coming in Python 3.8
"if m as re.match(p1, line)" is not very English-like.
clinta
on July 18, 2019
|
next
[–]
Because the variable goes after the as. if re.match(p1, line) as m:
carver
on July 18, 2019
|
prev
[–]
`if re.match(p1, line) as m`, maybe?
collinmanderson
on July 18, 2019
|
parent
[–]
Yes, this is what I would expect. Much like a with statement.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: