GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — ENH: note on the error when out may be partially written by Ijtihed · Pull Request #31965 · numpy/numpy Conversation
Contributor
PR summaryfollow up to the discussion in #31940
the note is only added when no internal copy shielded the caller's array. AI DisclosureUsed Claude for double checking if I missed anything
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Ijtihed
force-pushed
the
enh/note-partial-out-write
branch
from
1762456 to
c072052
Compare
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Ijtihed
force-pushed
the
enh/note-partial-out-write
branch
from
c072052 to
4209c33
Compare
|
There was an error while loading. Please reload this page.
caller's array can be left partially modified on error in these
fyi: take/choose weren't fully shielded by their internal copy either so i added to the pr |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@seberg do you think one should add the note to all cases where an exception being raised can cause partial modification to out array here in this PR? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This has ballooned into way to much reviewer work for something that is really not a problem. Please don't continue adding on more followup PRs for this. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
the scan was a response to @ikrommyd 's question. The other issues are independent of this specific fix :) I will avoid adding more follow ups from now on. thanks for flagging this! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I was probably not clear enough. I only wanted to identify if there are any other places to put the add_note helper where the user is already visibly experiencing a partial modification in the out array and we can just improve the error they are already getting. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
To be clear, just because I think that this is an interesting idea, doesn't mean that I think it is important or even worthwhile right now. In fact, the whole thought of "there are a lot of places" might mean that we should just not do it, because it is general NumPy behavior. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yeah this makes sense. This was actually why I asked for the locations where this happens. I did not expect an error being raised causing a partial state modification to be super common cause if it is, one can argue is that this is common numpy behavior and it probably doesn’t deserve special treatment. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'll just close this for now. I don't care about re-opening it, but the motivatio nneeds to be better then us musing about it maybe being nice. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.