On Jun 24, 5:19 pm, Nils Bruin <nbr...@sfu.ca> wrote:
> 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"

You may want to see if http://trac.sagemath.org/sage_trac/ticket/7496
affects this, or whether it at least gives an idea of what to do.
preparse_file versus preparse was an interesting distinction I wasn't
previously aware of.

- kcrisman

-- 
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

Reply via email to