Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: check for nargs <= NPY_MAXARGS in ufunc constructor #5673

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

Merged
merged 1 commit into from
Mar 13, 2015

Conversation

jaimefrio
Copy link
Member

Fixes #5672

PyErr_Format(PyExc_ValueError,
"Cannot construct a ufunc with more than %d operands "
"(%d input%sand %d output%swere requested)",
NPY_MAXARGS, nin, nin != 1 ? "s " : " ", nout,
Copy link
Member

Choose a reason for hiding this comment

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

Heh. I wonder if requested number were: inputs = %d and outputs = %d. would do?

@charris
Copy link
Member

charris commented Mar 12, 2015

LGTM modulo error message bike shedding.

@jaimefrio
Copy link
Member Author

Just wait for the new paint on the bike shed to dry, and it should be ready to merge. ;-)

charris added a commit that referenced this pull request Mar 13, 2015
BUG: check for nargs <= NPY_MAXARGS in ufunc constructor
@charris charris merged commit ce7461e into numpy:master Mar 13, 2015
@charris
Copy link
Member

charris commented Mar 13, 2015

Love the color ;) Thanks Jaime.

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.

Segmentation fault when creating a nargs>32 ufunc using frompyfunc in numpy 1.9.2
2 participants