Re: [sage-support] Re: strange behavior on assigning string with single quotes

2010-05-12 Thread Tim Joseph Dumol
Hi Rajeev,

This is a bug in older versions of Sage. Please try downloading the latest
version over at: http://sagemath.org/download-linux.html.

On Wed, May 12, 2010 at 7:43 PM, Rajeev  wrote:

> Let me also add that there is no problem if the dropdown menu at the
> top is set at sage (the default option).
>
>
>
> On May 12, 4:31 pm, Rajeev  wrote:
> > Hi,
> >
> > I am finding a very strange behavior in notebook. Evaluating
> >
> > a = 'hello'
> >
> > gives
> >
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "_sage_input_12.py", line 4, in 
> > print _support_.syseval(python, ur\u0027\u0027\u0027a = \u0027hello
> > \u0027\u0027\u0027\u0027, \u0027/home/rajeev/sage_notebook/
> > sage_notebook.sagenb/home/admin/32/cells/25\u0027)
> >   File "", line 1
> > print _support_.syseval(python, ur'''a = 'hello, '/home/rajeev/
> > sage_notebook/sage_notebook.sagenb/home/admin/32/cells/25')
> >
> > ^
> > SyntaxError: EOL while scanning string literal
> >
> > There is no problem when I use double quotes. I am using sage 4.2 and
> > I have selected python from the dropdown menu at the top.
> >
> > Rajeev
> >
> > --
> > To post to this group, send email to sage-support@googlegroups.com
> > To unsubscribe from this group, send email to
> sage-support+unsubscr...@googlegroups.com
> > For more options, visit this group athttp://
> groups.google.com/group/sage-support
> > URL:http://www.sagemath.org
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>



-- 
Tim Joseph Dumol 
http://timdumol.com

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


[sage-support] Re: strange behavior on assigning string with single quotes

2010-05-12 Thread Rajeev
Let me also add that there is no problem if the dropdown menu at the
top is set at sage (the default option).



On May 12, 4:31 pm, Rajeev  wrote:
> Hi,
>
> I am finding a very strange behavior in notebook. Evaluating
>
> a = 'hello'
>
> gives
>
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "_sage_input_12.py", line 4, in 
>     print _support_.syseval(python, ur\u0027\u0027\u0027a = \u0027hello
> \u0027\u0027\u0027\u0027, \u0027/home/rajeev/sage_notebook/
> sage_notebook.sagenb/home/admin/32/cells/25\u0027)
>   File "", line 1
>     print _support_.syseval(python, ur'''a = 'hello, '/home/rajeev/
> sage_notebook/sage_notebook.sagenb/home/admin/32/cells/25')
>
> ^
> SyntaxError: EOL while scanning string literal
>
> There is no problem when I use double quotes. I am using sage 4.2 and
> I have selected python from the dropdown menu at the top.
>
> Rajeev
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/sage-support
> URL:http://www.sagemath.org

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