On Fri, May 14, 2010 at 7:39 PM, Tim Joseph Dumol <[email protected]> wrote:

> Hi,
>
>
> On Fri, May 14, 2010 at 7:28 PM, Rajeev <[email protected]> wrote:
>
>> Hi,
>>
>> I am getting the following error in the notebook
>>
>> 1 + \
>> 2
>>
>> Traceback (most recent call last):
>>  File "<stdin>", line 1, in <module>
>>  File "_sage_input_34.py", line 10, in <module>
>>    exec compile(u'open("___code___.py","w").write("# -*- coding:
>> utf-8 -*-\\n" +
>>
>> _support_.preparse_worksheet_cell(base64.b64decode("MSArIFwKMg=="),globals())
>> +"\\n"); execfile(os.path.abspath("___code___.py"))
>>  File "", line 1, in <module>
>>
>>  File "/tmp/tmpts66v1/___code___.py", line 4
>>    exec compile(u'_sage_const_2
>>       ^
>> SyntaxError: invalid syntax
>>
>> I am using version 4.4.1. I couldn't find a discussion about it
>> recently. Is someone else also getting the same error?
>>
>> Best wishes,
>> Rajeev
>>
>> --
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<sage-support%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/sage-support
>> URL: http://www.sagemath.org
>>
>
>
> I can confirm this error, and #7997 (
> http://trac.sagemath.org/sage_trac/ticket/7997) addresses this issue,
> among others.
>
>
In the meantime, you can try wrapping the lines in parentheses instead,
which is preferred by PEP8.

{{{

(1 +
     2)

}}}


> --
> Tim Joseph Dumol <tim (at) timdumol (dot) com>
> http://timdumol.com
>



-- 
Tim Joseph Dumol <tim (at) timdumol (dot) com>
http://timdumol.com

-- 
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-support
URL: http://www.sagemath.org

Reply via email to