Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
amp108
· 4y ago · 0 comments
This seems like a weird, and possibly untrustworthy, hack. Does Python not have the equivalent of Ruby's `x` modifier?
Comments
[–]
kzrdude
4y ago
Yep, python has the same option, it's called re.VERBOSE and aliased as re.X.
https://docs.python.org/3/library/re.html#re.X
[–]
nedbat
4y ago
What is untrustworthy about it?