Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Comments

fixed anomalous backslash in string#32

Merged
ramalho merged 1 commit intofluentpython:masterfrom
anancds:patch
Mar 20, 2019
Merged

fixed anomalous backslash in string#32
ramalho merged 1 commit intofluentpython:masterfrom
anancds:patch

Conversation

@anancds
Copy link
Contributor

@anancds anancds commented Mar 20, 2019

No description provided.

@ramalho ramalho merged commit 6de94c1 into fluentpython:master Mar 20, 2019
@ramalho
Copy link
Member

ramalho commented Mar 20, 2019

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants