News for hackers. Stuff that matters.
Re:The unreasonable effectiveness of f-strings and re.verbose by amp108 on Monday May 23, 2022 @08:59PM (#31486797)
This seems like a weird, and possibly untrustworthy, hack. Does Python not have the equivalent of Ruby's `x` modifier?
Re:The unreasonable effectiveness of f-strings and re.verbose by kzrdude on Tuesday May 24, 2022 @12:36AM (#31488048)
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

Re:The unreasonable effectiveness of f-strings and re.verbose by nedbat on Monday May 23, 2022 @09:22PM (#31486957)
What is untrustworthy about it?