Skip to content

MAINT: let ndarray.__array_ufunc__ bail if any overrides are in place. - #10

Merged
charris merged 1 commit into
charris:enable-numpy_ufuncfrom
mhvk:array_ufunc_updates
Apr 2, 2017
Merged

charris merged 1 commit into
charris:enable-numpy_ufuncfrom
mhvk:array_ufunc_updates

Conversation

@mhvk

@mhvk mhvk commented Apr 2, 2017

Copy link
Copy Markdown

As part of this, split off the checking for overrides from the actual
trying to execute them (in ufunc_override.c), so that just the check
can be done in ndarray.array_ufunc.

As part of this, split off the checking for overrides from the actual
trying to execute them (in ufunc_override.c), so that just the check
can be done in ndarray.__array_ufunc__.
@charris
charris merged this pull request into charris:enable-numpy_ufunc Apr 2, 2017
@charris

charris commented Apr 2, 2017

Copy link
Copy Markdown
Owner

Nasty diff ;) Thanks Marten.

@charris

charris commented Apr 2, 2017

Copy link
Copy Markdown
Owner

BTW, you should check for compiler warning. Here, note that if you have PyObject *a[10];, then a and &a are different types, the latter points to arrays of given size 10. Also
PyObject **a[10] is an array of pointers to pointers, i.e., type ** (*)[10], one too many indirections. Apart from that, declaring arrays of fixed size is unusual in C.

@mhvk
mhvk deleted the array_ufunc_updates branch April 2, 2017 17:11
@mhvk

mhvk commented Apr 2, 2017

Copy link
Copy Markdown
Author

@charris - I must admit I don't understand C arrays very well, and basically tried various numbers of * until things seemed to work... So, should I still change anything?

@charris

charris commented Apr 2, 2017

Copy link
Copy Markdown
Owner

I fixed it. Yeah, C pointers can be confusing. C doesn't do well with arrays, as opposed to pure pointers, Fortran is much better in that regard.

charris pushed a commit that referenced this pull request Nov 21, 2021
commit 9c833bed5879d77e625556260690c349de18b433
Author: Thomas Li <[email protected]>
Date:   Wed Nov 17 16:21:27 2021 -0800

    Add Windows config to GHA

    update script [wheel build]

    typo [wheel build]

    fix typo? [wheel build]

    fix linux builds? [wheel build]

    typo [wheel build]

    add license and pin to windows 2016

    skip tests [wheel build]

    pin to windows 2019 instead [wheel build]

    try to find out the error on windows [wheel build]

    maybe fix? [wheel build]

    maybe fix? [wheel build]

    fix? [wheel build]

    cleanup [wheel build]

    Add Windows config to GHA

    update script [wheel build]

    typo [wheel build]

    fix typo? [wheel build]

    fix linux builds? [wheel build]

    typo [wheel build]

    add license and pin to windows 2016

    skip tests [wheel build]

    pin to windows 2019 instead [wheel build]

    try to find out the error on windows [wheel build]

    maybe fix? [wheel build]

    maybe fix? [wheel build]

    fix? [wheel build]

    cleanup [wheel build]

    Update LICENSE_win32.txt

    Update LICENSE_win32.txt

    Add Windows config to GHA

    update script [wheel build]

    typo [wheel build]

    fix typo? [wheel build]

    fix linux builds? [wheel build]

    typo [wheel build]

    add license and pin to windows 2016

    skip tests [wheel build]

    pin to windows 2019 instead [wheel build]

    try to find out the error on windows [wheel build]

    maybe fix? [wheel build]

    maybe fix? [wheel build]

    fix? [wheel build]

    cleanup [wheel build]

    Update LICENSE_win32.txt

    Update LICENSE_win32.txt

    Update cibw_test_command.sh

commit 4bd12df
Author: Thomas Li <[email protected]>
Date:   Mon Nov 15 17:28:47 2021 -0800

    # This is a combination of 14 commits.
    # This is the 1st commit message:

    Add Windows config to GHA
    # This is the commit message #2:

    update script [wheel build]
    # This is the commit message #3:

    typo [wheel build]
    # This is the commit message #4:

    fix typo? [wheel build]
    # This is the commit message #5:

    fix linux builds? [wheel build]
    # This is the commit message #6:

    typo [wheel build]
    # This is the commit message #7:

    add license and pin to windows 2016
    # This is the commit message #8:

    skip tests [wheel build]
    # This is the commit message #9:

    pin to windows 2019 instead [wheel build]
    # This is the commit message #10:

    try to find out the error on windows [wheel build]
    # This is the commit message #11:

    maybe fix? [wheel build]
    # This is the commit message #12:

    maybe fix? [wheel build]
    # This is the commit message #13:

    fix? [wheel build]
    # This is the commit message #14:

    cleanup [wheel build]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants