Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLN: change regex try/except to checks #28121

Merged
merged 1 commit into from
Aug 25, 2019

Conversation

jbrockmendel
Copy link
Member

No description provided.

@WillAyd
Copy link
Member

WillAyd commented Aug 24, 2019

Just a general question - is this a performance gain or just an approach you find more appropriate?

@jbrockmendel
Copy link
Member Author

Just a general question - is this a performance gain or just an approach you find more appropriate?

The latter. In a lot of places we have try/excepts that obscure what the expected failure mode is, sometimes with real consequences (eg #28122). This case is pretty benign.

@WillAyd WillAyd added this to the 1.0 milestone Aug 25, 2019
@WillAyd
Copy link
Member

WillAyd commented Aug 25, 2019

Sounds good thanks for clarifying

@WillAyd WillAyd merged commit 518d8ae into pandas-dev:master Aug 25, 2019
@jbrockmendel jbrockmendel deleted the regexcheck branch August 25, 2019 16:01
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants