Skip to content

MAINT: Move duplicated type_reso_error code into a helper function - #12147

Merged
charris merged 1 commit into
numpy:masterfrom
eric-wieser:unify-type-resolution-errors
Oct 11, 2018
Merged

charris merged 1 commit into
numpy:masterfrom
eric-wieser:unify-type-resolution-errors

Conversation

@eric-wieser

@eric-wieser eric-wieser commented Oct 11, 2018 •

Copy link
Copy Markdown
Member

This is still not exception-safe, but at least there's now one instance of it to fix rather than 4

@eric-wieser
eric-wieser force-pushed the unify-type-resolution-errors branch from 6c93fdf to 28679be Compare October 11, 2018 15:53

@tylerjereddy tylerjereddy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of stuff to like here -- reduced code duplication & removal of gotos / improved clarity.

If CI is all green I'm +1 to merge it and then I can adjust #12120, which I think trigged more developers looking at the code in the type resolver machinery.

@charris
charris merged commit e309fb0 into numpy:master Oct 11, 2018
@charris

charris commented Oct 11, 2018

Copy link
Copy Markdown
Member

Thanks Eric.

@eric-wieser
eric-wieser deleted the unify-type-resolution-errors branch October 16, 2018 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants