On Jun 24, 1:25 pm, Tom Boothby <tomas.boot...@gmail.com> wrote: > This is exceptionally strange: > > sage: def x(a,1): > sage: return a+1 > sage: print x(1,5) > 6 > > In my opinion, that's a bug, as is > > sage: def y(a,b=1): > sage: return a+b > sage: 1=5 > sage: y(1) > 6
It's even stranger because on the command line, these examples are (rightly) rejected. In the notebook as well as in a loaded ".sage" file I am observing this worrying behaviour as well. Especially the parsing of "1=5" makes me seriously want to turn off "implicit symbolic function definitions", if only that wouldn't prevent me from saving 2 painful quotes by using _(x,y,z)=1 instead of var("x,y,z") -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org