fluentpython / example-code

Example code for the book Fluent Python, 1st Edition (O'Reilly, 2015)
http://bit.ly/fluentpy
MIT License
5.56k stars 2.18k forks source link

fixed anomalous backslash in string #32

Closed anancds closed 5 years ago

ramalho commented 5 years ago

Thank you, @anancds ! Although the code did work as I wrote it (because \w is not a valid str escape), it is much better to make it explicit that it is a raw string to be interpreted by the regex functions. PR merged!