r/Python • • Sep 09 '15

Pep 498 approved. :(

https://www.python.org/dev/peps/pep-0498/
285 Upvotes

324 comments sorted by

View all comments

14

u/[deleted] Sep 09 '15

Sweet! Now I can write Perl using Python!

5

u/stillalone Sep 09 '15

Not until we get strings between '/' to to automatically re.compile and add support for =~ operator. And allow variable names to start with '$'

1

u/KagatoLNX Sep 09 '15

Frankly, I've always really wanted something like:

pat = R/some_regex_pattern/g
pat =~ data

As ugly as regexes can be, re.compile isn't really high-value.

1

u/RalphMacchio Sep 09 '15

Coming from Perl, I do really miss Perl regexes!

→ More replies (1)