More helpful error when multiplication operator is left out

8 views
Skip to first unread message

Gustav Delius

unread,
Feb 7, 2010, 1:36:29 PM2/7/10
to sage-devel
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 *.

Burcin Erocal

unread,
Feb 8, 2010, 9:44:13 AM2/8/10
to sage-...@googlegroups.com
Hi Gustav,

This is now #8214 on trac:

http://trac.sagemath.org/sage_trac/ticket/8214

Thank you.

Burcin

Gustav Delius

unread,
Feb 8, 2010, 10:44:18 AM2/8/10
to sage-...@googlegroups.com
Burcin,

thanks for putting this into the tracker. I am not yet quite sure what
goes onto the discussion forum and what goes into the tracker.

I saw your comment that the shortcut notation has been deprecated for
over a year already. Do you know when it is planned to actually remove
it? Is there already a ticket for that in the tracker?

Gustav

> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

Reply all
Reply to author
Forward
0 new messages