Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

No need to use compile here #14

Open
GreatBahram opened this issue May 17, 2019 · 0 comments
Open

No need to use compile here #14

GreatBahram opened this issue May 17, 2019 · 0 comments

Comments

@GreatBahram
Copy link

People usually use compile object, when they want to use the sample pattern thousand of times, here you don't need it (maybe).

pattern = re.compile('|'.join(dictionary.keys()))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant