-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
var('x',ns=False) -- should go boom but silently gives a new symbolic variable #6340
Comments
comment:1
The fix should be to raise a DeprecationError... or possibly just a NotImplementedError... |
comment:2
This raises a NotImplementedError for ns=False, but still creates the variable for ns=1 or ns=True, with a verbose level 0 message. |
comment:3
Patch at #6559 enhances symbolic variables definition. Unfortunately, the patch there |
comment:4
It looks like #6559 functionality is better to incorporate first. What happens after its inclusion with the following?
The results of these will help create a new patch, though that may not happen for a bit. Alternately, since this one is small, one could review it positively (if it deserves to be) :) and then base the bigger patch at #6559 on it. |
Based on 4.1.1 and #6559 |
comment:5
Attachment: trac_6340-var-ns-based-6559.patch.gz Depending on which one is reviewed first, here's a patch on top of #6559. Should work identically. |
comment:6
This should use the deprecation function instead of the verbose function. For example (from matrix_rational_dense.pyx)
|
comment:7
I think |
comment:8
This makes sense. I've updated the first patch as per Burcin's idea, which seems most appropriate. |
Author: Karl-Dieter Crisman |
comment:9
Sorry for not pointing this out earlier, but I suggest changing the block:
with
Even if Putting a check that |
comment:10
Yes, I knew there was a more elegant way to do it, but didn't have time to look it up. As for *args, I think I can safely get rid of that completely, since there are no args, only keywords. Patch coming up. |
Based on 4.1.2.alpha2 |
comment:11
Attachment: trac_6340-var-ns.patch.gz This should take care of it, I hope. |
Attachment: trac_6340-missing_bits.patch.gz more doctest fixes |
Reviewer: Jason Grout, Burcin Erocal |
comment:12
Looks good to me. AFAICT, there were two more places using the Apply only |
comment:13
To release manager: the "missing bits" may be covered in other patches reviewed related to symbolics, so do not merge if that one won't merge (simple enough!). |
comment:14
Merged |
Merged: Sage 4.1.2.alpha3 |
Changed merged from Sage 4.1.2.alpha3 to Sage 4.1.2.alpha4 |
comment:15
There is no 4.1.2.alpha3. Sage 4.1.2.alpha3 was William Stein's release for working on making the notebook a standalone package. |
Component: calculus
Author: Karl-Dieter Crisman
Reviewer: Jason Grout, Burcin Erocal
Merged: Sage 4.1.2.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/6340
The text was updated successfully, but these errors were encountered: