#8214: add better error message when symbolic expressions are called
-------------------------+--------------------------------------------------
Reporter: burcin | Owner: burcin
Type: defect | Status: new
Priority: major | Milestone: sage-4.3.3
Component: symbolics | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------+--------------------------------------------------
Old description:
> From sage-devel:
>
> {{{
> On Sun, 7 Feb 2010 10:36:29 -0800 (PST)
> Gustav Delius <[email protected]> wrote:
>
> > I wonder whether it would be possible to give a better error message
> > when a user leaves out the multiplication operator in something like
> > x(x+1). Perhaps somthing like: "Warning: you may have forgotten a
> > multiplication operator."
> >
> > Currently one gets the error message: "DeprecationWarning:
> > Substitution using function-call syntax and unnamed arguments is
> > deprecated and will be removed from a future release of Sage; you can
> > use named arguments instead, like EXPR(x=...,y=...)". This error
> > message is meaningful only to people who know the history of sage and
> > know that there used to be a confusing shorthand notation that allowed
> > something like x=a^2 to be interpreted as x(a)=a^2. I am glad that was
> > deprecated, but I think that the deprecation warning should be
> > preceeded by the warning about the possibility of a missing *.
> }}}
>
> Here is the thread:
>
> http://groups.google.com/group/sage-devel/t/de97f91d548cc0ec
>
> Incidentally, it's almost a year since this was deprecated, #5413. Maybe
> we can remove the deprecation message for good. :)
New description:
From sage-devel:
{{{
On Sun, 7 Feb 2010 10:36:29 -0800 (PST)
Gustav Delius <[email protected]> wrote:
> I wonder whether it would be possible to give a better error message
> when a user leaves out the multiplication operator in something like
> x(x+1). Perhaps somthing like: "Warning: you may have forgotten a
> multiplication operator."
>
> Currently one gets the error message: "DeprecationWarning:
> Substitution using function-call syntax and unnamed arguments is
> deprecated and will be removed from a future release of Sage; you can
> use named arguments instead, like EXPR(x=...,y=...)". This error
> message is meaningful only to people who know the history of sage and
> know that there used to be a confusing shorthand notation that allowed
> something like x=a^2 to be interpreted as x(a)=a^2. I am glad that was
> deprecated, but I think that the deprecation warning should be
> preceeded by the warning about the possibility of a missing *.
}}}
Here is the thread:
http://groups.google.com/group/sage-devel/t/de97f91d548cc0ec
Incidentally, it's almost a year since this was deprecated, #5413. Maybe
we can remove the deprecation message for good. :)
--
Comment(by delius):
Burcin, I agree with your observation that the shortcut notation has now
been deprecated for a long time. However the shortcut notation has not
actually been disabled yet. Perhaps the warning should stay until that has
happened.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8214#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.