Skip to content

MAINT: Include the function name in all argument error messages#8861

Merged
juliantaylor merged 1 commit intonumpy:masterfrom
eric-wieser:arg-parse-name
Mar 28, 2017
Merged

MAINT: Include the function name in all argument error messages#8861
juliantaylor merged 1 commit intonumpy:masterfrom
eric-wieser:arg-parse-name

Conversation

@eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Mar 28, 2017

Performed using the following regex, replacing with $0:$1. Some manual cleanup
was then required

^[a-z]+_(\w+)(?:(?!\}).*\n)+.*PyArg_ParseTuple(AndKeywords)?\(args[^"]+"[^:"]+(?=")

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a little annoying how sometimes the C and python function names are inconsistent, like here (can_cast vs can_cast_safely)

Copy link
Contributor

Choose a reason for hiding this comment

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

this is _fastCopyAndTranspose

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch

@juliantaylor
Copy link
Contributor

looks good modulo one nitpick

while greatly appreciated you should slow down a little with the changes to avoid a too fast burnout, also we don't have enough review time to keep up.

Performed using the following regex, replacing with $0:$1. Some manual cleanup
was then required.

    ^[a-z]+_(\w+)(?:(?!\}).*\n)+.*PyArg_ParseTuple(AndKeywords)?\(args[^"]+"[^:"]+(?=")
@charris
Copy link
Member

charris commented Mar 28, 2017

you should slow down a little with the changes

My motto, "Gather ye rosebuds while ye may." Few last more than a few years in open source, the needs of life eventually take precedence...

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