-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
Return Unknown from ex.is_xyz() if Pynac returns false #22162
Comments
Commit: |
New commits:
|
Author: Ralf Stephan |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:5
Regarding |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
Replying to @jdemeyer:
That would have to be changed to preserve previous usage. I don't think there is much of that in Sage (except |
comment:8
Replying to @jdemeyer:
Actually, what I meant is that it is fine as it is, as it preserves previous usage. |
This comment has been minimized.
This comment has been minimized.
comment:9
Replying to @rwst:
If the goal of this ticket is to preserve previous usage, why bother at all? Shouldn't the goal be to fix the bad previous usage instead? That means that |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
As it was a no-brainer I changed the other Please review. |
comment:13
I think we should think about [comment:9] before merging this. What good is |
comment:14
Well, quoting Also, isn't that an independent issue? |
comment:15
Replying to @rwst:
No, I think it's not an independent issue because it's the motivation of this ticket. Which problem does this ticket solve if you don't fix |
comment:16
There is also the purely practical point that it's easier to change the functionality of |
comment:17
Replying to @jdemeyer:
Semantic inconsistency: |
comment:18
Replying to @rwst:
With this patch, you get an object 'Unknown' which behaves a lot like |
comment:19
Replying to @jdemeyer:
Disclaimer: Python is not my specialty. Either you convert
|
This comment has been minimized.
This comment has been minimized.
comment:25
Later, when the complementary flags (irreal, noninteger, nonpositive) are implemented in Pynac these function can return |
comment:26
Replying to @rwst:
What would be the point of having |
comment:27
Agree. Exposing the flag to the user is not really necessary. |
Changed branch from u/rws/22162 to u/rws/22162-1 |
New commits:
|
comment:30
#24345 is merged in 9.1.beta5 but this one needs a rebase |
comment:31
Moving tickets to milestone sage-9.2 based on a review of last modification date, branch status, and severity. |
comment:33
Setting new milestone based on a cursory review of ticket status, priority, and last modification date. |
comment:34
Setting a new milestone for this ticket based on a cursory review. |
Expected:
To clarify, I think it's possible to separate the issue of
"why do I get False" from the issue of deciding between
True/False/Unknown
, by simply returning Unknown if thePynac logic returns false.
It would be much less surprising to the user.
Later, when the complementary flags (irreal, noninteger, nonpositive) are implemented in Pynac these function can return
True/Unknown/False
, e.g.is_integer
will return False ifis_noninteger
returns True, so both behave complementary.CC: @pelegm
Component: symbolics
Author: Ralf Stephan
Branch/Commit: u/rws/22162-1 @
079597d
Issue created by migration from https://trac.sagemath.org/ticket/22162
The text was updated successfully, but these errors were encountered: